Touchstone 11.0 API Reference
GetExposureView Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ProjectManagementServiceClient Class : GetExposureView Method
Contains a GetExposureViewRequest that identifies the Touchstone-generated Exposure View Sequential Identifier (SID) of the Exposure View that you want to retrieve, along with the associated Business Unit SID and SQL Instance SID.
Retrieves a single existing Touchstone® Exposure View.
Syntax
Public Function GetExposureView( _
   ByVal request As GetExposureViewRequest _
) As GetExposureViewResponse
Dim instance As ProjectManagementServiceClient
Dim request As GetExposureViewRequest
Dim value As GetExposureViewResponse
 
value = instance.GetExposureView(request)

Parameters

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

Return Value

A GetExposureViewResponse containing the Touchstone Exposure View 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 Exposure View SID to pass into this method, call the GetExposureViews() method. (To find the Project SID to pass into the GetExposureViews() method, call the GetProjects() method.)

Example
The following example shows how to retrieve a Touchstone Exposure View using the GetExposureView() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ProjectManagement.Api;
using AIR.Services.ProjectManagement.Data;
            
class SnippetGetExposureViewRequest
{
    private static void GetExposureView(int businessUnitSid, int sqlInstanceSid, int exposureViewSid)
    {
        ProjectManagementServiceClient projectClient = new ProjectManagementServiceClient();
        GetExposureViewRequest request = new GetExposureViewRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.ExposureViewSid = exposureViewSid;
        GetExposureViewResponse response = projectClient.GetExposureView(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Exposure View Name: " + response.ExposureView.Name);
            Console.WriteLine("Exposure View Description: " + response.ExposureView.Description);
            Console.WriteLine("**** Following are the Exposure View Details   ****");
            foreach (ExposureViewDetail expViewDetail in response.ExposureView.Details)
            {
                Console.WriteLine("Exposure Set Name: " + expViewDetail.ExposureSet.Name);
                Console.WriteLine("Exposure Set SID: " + expViewDetail.ExposureSet.Sid);
                Console.WriteLine("Exposure Set's Data Source Name: " + expViewDetail.ExposureSet.DataSourceName);
                Console.WriteLine("Exposure Set's Data Source SID: " + expViewDetail.ExposureSet.DataSourceSid);
                Console.WriteLine("           *******************************          ");
            }
        }
    }
}
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