Touchstone Re 2023 API Reference
SubmitDeleteExposureSet Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataSourceManagementServiceClient Class : SubmitDeleteExposureSet Method
Contains a SubmitDeleteExposureSetRequest that identifies the Touchstone-generated Exposure Set Sequential Identifier (SID) of the Exposure Set that you want to delete, along with the associated Data Source SID, Business Unit SID, and SQL Instance SID.
Deletes a single Touchstone® Exposure Set.
Syntax
Public Function SubmitDeleteExposureSet( _
   ByVal request As SubmitDeleteExposureSetRequest _
) As SubmitDeleteExposureSetResponse
Dim instance As DataSourceManagementServiceClient
Dim request As SubmitDeleteExposureSetRequest
Dim value As SubmitDeleteExposureSetResponse
 
value = instance.SubmitDeleteExposureSet(request)

Parameters

request
Contains a SubmitDeleteExposureSetRequest that identifies the Touchstone-generated Exposure Set Sequential Identifier (SID) of the Exposure Set that you want to delete, along with the associated Data Source SID, Business Unit SID, and SQL Instance SID.

Return Value

A SubmitDeleteExposureSetResponse containing the Activity SID that uniquely identifies the asynchronous web service call that you made to delete the specified Exposure Set.
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 Data Source SID to pass into this method, call the GetDataSources() method.

To find the Exposure Set SID to pass into this method, call the GetExposureSets() method.

Example
The following example shows how to delete a Touchstone Exposure Set using the SubmitDeleteExposureSet() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.DataSourceManagement.Api;
            
class SnippetSubmitDeleteExposureSetRequest
{
    private static void DeleteExposureSet(int businessUnitSid, int sqlInstanceSid, int dataSourceSid, int exposureSetSid)
    {
        DataSourceManagementServiceClient dsClient = new DataSourceManagementServiceClient();
        SubmitDeleteExposureSetRequest request = new SubmitDeleteExposureSetRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.DataSourceSid = dataSourceSid;
        request.ExposureSetSid = exposureSetSid;
        SubmitDeleteExposureSetResponse response = dsClient.SubmitDeleteExposureSet(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Delete Exposure Set Request submitted with Activity SID: " + response.ActivitySid);
        }
    }
}
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

DataSourceManagementServiceClient Class
DataSourceManagementServiceClient Members