Skip to main content

Requesting an individual project can be achieved by using one of the Get operations.

Get by id

Gets a project by its identifier.

Syntax

C#
public Project Get(string projectId)
{
}

Parameters

id

Type: string
The id of the project.

Remarks

Returns null if a project with an id matching the specified id does not exist.

Example

This example shows how a project instance can be accessed.

C#
using Zengenti.Contensis.Management;

var client = ManagementClient.Create();

// Access the movie DB project
var movieProject = client.Projects.Get("movieDb");

Get by id async

Gets a project by its identifier asynchronously.

Syntax

C#
public async Task<Project> GetAsync(string projectId)
{
}

Parameters

id

Type: string
The id of the project.

Remarks

Returns null if a project with an id matching the specified id does not exist.

Example

This example shows how a project instance can be accessed asynchronously.

C#
using Zengenti.Contensis.Management;

var client = ManagementClient.Create();

// Access the movie DB project
var movieProject = await client.Projects.GetAsync("movieDb");

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request