Touchstone 11.0 API Reference
GetCustomBoundaries Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ExposureConcentrationAnalysisServiceClient Class : GetCustomBoundaries Method
Contains a GetCustomBoundariesRequest that identifies the Business Unit SID and SQL Instance SID for which you want to retrieve the available custom boundaries.
Retrieves a set of custom boundaries.

The Custom Boundaries are particularly useful when you import your own vector or raster data as a Boundary data type and inspect accumulation on the same exposures.

Syntax
Public Function GetCustomBoundaries( _
   ByVal request As GetCustomBoundariesRequest _
) As GetCustomBoundariesResponse
Dim instance As ExposureConcentrationAnalysisServiceClient
Dim request As GetCustomBoundariesRequest
Dim value As GetCustomBoundariesResponse
 
value = instance.GetCustomBoundaries(request)

Parameters

request
Contains a GetCustomBoundariesRequest that identifies the Business Unit SID and SQL Instance SID for which you want to retrieve the available custom boundaries.

Return Value

A GetCustomBoundariesResponse containing all the existing CustomBoundaries associated with the Touchstone BU specified in the request job.
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.

For information about retrieving the custom boundaries, see the GetCustomBoundaries() method.

Example
using AIR.Services.Common.Data;
 using AIR.Services.ExposureConcentrationAnalysis.Api;
 using System;
            
 class SnippetGetCustomBoundaries
 {
 private static void GetCustomBoundaries(int businessUnitSid, int sqlInstanceSid)
 {
 ExposureConcentrationAnalysisServiceClient client = new ExposureConcentrationAnalysisServiceClient();
 GetCustomBoundariesRequest request = new GetCustomBoundariesRequest();
 request.BusinessUnitSid = businessUnitSid;
 request.SqlInstanceSid = sqlInstanceSid;
 GetCustomBoundariesResponse response = client.GetCustomBoundaries(request);
    if (response.Status.Code == StatusCode.Success)
    {
        foreach (var cb in response.CustomBoundaries)
        {
 Console.WriteLine("Sid: " + cb.Sid);
 Console.WriteLine("Name: " + cb.Name);
 }
 }
            
}
}
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

ExposureConcentrationAnalysisServiceClient Class
ExposureConcentrationAnalysisServiceClient Members