Retrieves a list of all existing Touchstone®
Exposure Views for a given
Project within a specific
Business Unit and
SQL Server Instance.
Public Function GetExposureViews( _
ByVal As GetExposureViewsRequest _
) As GetExposureViewsResponse
Dim instance As ProjectManagementServiceClient
Dim request As GetExposureViewsRequest
Dim value As GetExposureViewsResponse
value = instance.GetExposureViews(request)
public GetExposureViewsResponse GetExposureViews(
GetExposureViewsRequest
)
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.
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);
}
}
}
}
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