Touchstone Re 2023 API Reference
GetExposureSets Method (CompanyManagementServiceClient)
Example 


Air.Services.Proxy Assembly > (Global) Namespace > CompanyManagementServiceClient Class : GetExposureSets Method
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.
Retrieves a list of the existing exposure sets in a given Business Unit, SQL Server Instance, and company.
Syntax
Public Function GetExposureSets( _
   ByVal request As GetExposureSetsRequest _
) As GetExposureSetsResponse
Dim instance As CompanyManagementServiceClient
Dim request As GetExposureSetsRequest
Dim value As GetExposureSetsResponse
 
value = instance.GetExposureSets(request)

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.
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 company SID to pass into this method, call the GetCompanies() method.

An exposure set is a collection of exposure data such as sums insured, risk count, premium, rate, payroll, and market share data. Exposure sets are associated with Companies. Companies may contain many exposure sets.

You can import exposure data in UNICEDE/2 format.

Example
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);
            }
        }
    }
}
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

CompanyManagementServiceClient Class
CompanyManagementServiceClient Members