Retrieves a single existing Touchstone®
Project.
Parameters
- request
- Contains a GetProjectRequest that identifies the Touchstone-generated Project Sequential Identifier (SID) of the Project that you want to retrieve, along with the associated Business Unit SID and SQL Instance SID.
Return Value
A
GetProjectResponse containing the Touchstone
Project that you have requested.
The following example shows how to retrieve a Touchstone Project using the
GetProject()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ProjectManagement.Api;
using AIR.Services.ProjectManagement.Data;
class SnippetGetProjectRequest
{
private static void GetProject(int businessUnitSid, int sqlInstanceSid, int projectSid)
{
ProjectManagementServiceClient projectClient = new ProjectManagementServiceClient();
GetProjectRequest request = new GetProjectRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ProjectSid = projectSid;
GetProjectResponse response = projectClient.GetProject(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Name: " + response.Project.Name);
Console.WriteLine("Total Exposure Sets: " + response.Project.ExposureSetCount);
Console.WriteLine("Total Exposure Views: " + response.Project.ExposureViewCount);
Console.WriteLine("Total Result Sets: " + response.Project.ResultSetCount);
}
}
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2