Touchstone Re 2023 API Reference
CreateExposureSet Method (CompanyManagementServiceClient)
Example 


Air.Services.Proxy Assembly > (Global) Namespace > CompanyManagementServiceClient Class : CreateExposureSet Method
Contains a CreateExposureSetRequest that identifies the name, company sequential identifier (SID), Business Unit SID, and SQL Instance SID to associate with the exposure set to create.
Creates a new, empty Touchstone Re exposure set.
Syntax
Public Function CreateExposureSet( _
   ByVal request As CreateExposureSetRequest _
) As CreateExposureSetResponse
Dim instance As CompanyManagementServiceClient
Dim request As CreateExposureSetRequest
Dim value As CreateExposureSetResponse
 
value = instance.CreateExposureSet(request)

Parameters

request
Contains a CreateExposureSetRequest that identifies the name, company sequential identifier (SID), Business Unit SID, and SQL Instance SID to associate with the exposure set to create.

Return Value

A CreateExposureSetResponse that contains a SID, which uniquely identifies the exposure set that you created.
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 create an Exposure Set using the CreateExposureSet() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyManagement.Api;
using System;
            
class SnippetCreateExposureSet
{
    private static void CreateExposureSet(int businessUnitSid, int sqlInstanceSid, int companySid, string exposureSetName)
    {
        CompanyManagementServiceClient client = new CompanyManagementServiceClient();
        CreateExposureSetRequest request = new CreateExposureSetRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.CompanySid = companySid;
        request.ExposureSetName = exposureSetName;
        CreateExposureSetResponse response = client.CreateExposureSet(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Exposure Set created with Sid: " + response.ExposureSetSid);
        }
    }
}
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