Get a project
Created by Scott Yearsley, last modified by noellambertwork on 21 Dec 2017
Requesting 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");