Get a project
Log in to add to favouritesRequesting an individual project can be achieved by using one of the Get operations.
Get by id
Gets a project by its identifier.
Syntax
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.
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
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.
using Zengenti.Contensis.Management;
var client = ManagementClient.Create();
// Access the movie DB project
var movieProject = await client.Projects.GetAsync("movieDb");