Creates a new Touchstone®
Exposure Set.
An Exposure Set contains a discrete set of related Exposure data that includes the following information:
- Contract information, such as policy ID and company name
- Location information, such as property address, construction, and occupancy
- Financial information, such as replacement value
Parameters
- request
- Contains a CreateExposureSetRequest that identifies the Name of the Exposure Set that you want to create, along with the associated Touchstone-generated Data Source Sequential Identifier (SID), Business Unit SID and SQL Instance SID.
Return Value
A
CreateExposureSetResponse containing the
Exposure Set SID, which uniquely identifies the Exposure Set that you have created.
The following example shows how to create a Touchstone Exposure Set using the
CreateExposureSet()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.DataSourceManagement.Api;
class SnippetCreateExposureSetRequest
{
private static void CreateExposureSet(int businessUnitSid, int sqlInstanceSid, int dataSourceSid, string exposureSetName)
{
DataSourceManagementServiceClient dsClient = new DataSourceManagementServiceClient();
CreateExposureSetRequest request = new CreateExposureSetRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.Name = exposureSetName;
request.DataSourceSid = dataSourceSid;
CreateExposureSetResponse response = dsClient.CreateExposureSet(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Exposure Set " + request.Name + " created with SID: " + response.ExposureSetSid);
}
}
}
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