Touchstone Re 2023 API Reference
GetProject Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ProjectManagementServiceClient Class : GetProject Method
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.
Retrieves a single existing Touchstone® Project.
Syntax
Public Function GetProject( _
   ByVal request As GetProjectRequest _
) As GetProjectResponse
Dim instance As ProjectManagementServiceClient
Dim request As GetProjectRequest
Dim value As GetProjectResponse
 
value = instance.GetProject(request)
public GetProjectResponse GetProject( 
   GetProjectRequest request
)

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.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Project SID to pass into this method, call the GetProjects() method.

Example
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);
        }
    }
}
Requirements

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

See Also

Reference

ProjectManagementServiceClient Class
ProjectManagementServiceClient Members