Retrieves a list of the existing
exposure sets in a given
Business Unit,
SQL Server Instance, and
company.
Parameters
- request
- Contains a GetExposureSetsRequest that identifies the Business Unit Sequential Identifier (SID), SQL Instance SID, and company SID associated with the list of exposure sets to retrieve.
Return Value
A
GetProgramsResponse that contains a
list of exposure sets in the specified SQL server instance, business unit, and company.
The following example shows how to retrieve a list of existing Exposure Sets using the
GetExposureSets()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyManagement.Api;
using System;
class SnippetGetExposureSets
{
private static void GetExposureSets(int businessUnitSid, int sqlInstanceSid, int companySid)
{
CompanyManagementServiceClient client = new CompanyManagementServiceClient();
GetExposureSetsRequest request = new GetExposureSetsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.CompanySid = companySid;
GetExposureSetsResponse response = client.GetExposureSets(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (var exposureSet in response.AggregateExposureSets)
{
Console.WriteLine("ExposureSet Sid: " + exposureSet.Sid);
Console.WriteLine("ExposureSet Name: " + exposureSet.Name);
}
}
}
}
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