Touchstone Re 2023 API Reference
GetExposureViews Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ProjectManagementServiceClient Class : GetExposureViews Method
Contains a GetExposureViewsRequest that identifies the Touchstone-generated Business Unit Sequential Identifier (SID), SQL Instance SID, and Project SID associated with the list of Exposure Views that you want to retrieve.
Retrieves a list of all existing Touchstone® Exposure Views for a given Project within a specific Business Unit and SQL Server Instance.
Syntax
Public Function GetExposureViews( _
   ByVal request As GetExposureViewsRequest _
) As GetExposureViewsResponse
Dim instance As ProjectManagementServiceClient
Dim request As GetExposureViewsRequest
Dim value As GetExposureViewsResponse
 
value = instance.GetExposureViews(request)
public GetExposureViewsResponse GetExposureViews( 
   GetExposureViewsRequest request
)

Parameters

request
Contains a GetExposureViewsRequest that identifies the Touchstone-generated Business Unit Sequential Identifier (SID), SQL Instance SID, and Project SID associated with the list of Exposure Views that you want to retrieve.

Return Value

A GetExposureViewsResponse containing a list of Exposure Views in the specified Project within the specified SQL Server Instance and Business Unit.
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 list of all Touchstone Exposure Views for a given Project within a specific Business Unit and SQL Server Instance using the GetExposureViews() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ProjectManagement.Api;
using AIR.Services.ProjectManagement.Data;
            
class SnippetGetExposureViewsRequest
{
    private static void GetExposureViews(int businessUnitSid, int sqlInstanceSid, int projectSid)
    {
        ProjectManagementServiceClient projectClient = new ProjectManagementServiceClient();
        GetExposureViewsRequest request = new GetExposureViewsRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.ProjectSid = projectSid;
        GetExposureViewsResponse response = projectClient.GetExposureViews(request);
        if (response.Status.Code == StatusCode.Success)
        {
            foreach (ExposureView view in response.ExposureViews)
            {
                Console.WriteLine("SID: " + view.Sid);
                Console.WriteLine("Name: " + view.Name);
                Console.WriteLine("Description: " + view.Description);
            }
        }
    }
}
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