Touchstone Re 2023 API Reference
SubmitDeleteCompanyLossSet Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceCompanyLossSetManagementServiceClient Class : SubmitDeleteCompanyLossSet Method
Contains a SubmitDeleteCompanyLossSetRequest that identifies the software-generated sequential identifier (SID) that uniquely identifies the company loss set to delete, as well as the Business Unit SID and SQL Instance SID associated with the company loss set.
Deletes a company loss set.
Syntax
Public Function SubmitDeleteCompanyLossSet( _
   ByVal request As SubmitDeleteCompanyLossSetRequest _
) As SubmitDeleteCompanyLossSetResponse
Dim instance As ReinsuranceCompanyLossSetManagementServiceClient
Dim request As SubmitDeleteCompanyLossSetRequest
Dim value As SubmitDeleteCompanyLossSetResponse
 
value = instance.SubmitDeleteCompanyLossSet(request)

Parameters

request
Contains a SubmitDeleteCompanyLossSetRequest that identifies the software-generated sequential identifier (SID) that uniquely identifies the company loss set to delete, as well as the Business Unit SID and SQL Instance SID associated with the company loss set.

Return Value

A SubmitDeleteCompanyLossSetResponse that contains the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the delete job.
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 loss set SID to pass into this method, call the GetCompanyLossSets() method.

Example
The following example shows how to delete a Company Loss Set using the SubmitDeleteCompanyLossSet() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyLossSetManagement.Api;
using System;
            
class SnippetSubmitDeleteCompanyLossSet
{
    private static void SubmitDeleteCompanyLossSet(int businessUnitSid, int sqlInstanceSid, int clfSid)
    {
        ReinsuranceCompanyLossSetManagementServiceClient client = new ReinsuranceCompanyLossSetManagementServiceClient();
        SubmitDeleteCompanyLossSetRequest request = new SubmitDeleteCompanyLossSetRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.CompanyLossSetSid = clfSid;
        SubmitDeleteCompanyLossSetResponse response = client.SubmitDeleteCompanyLossSet(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Delete Company Loss Set submitted with Acitivity 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

ReinsuranceCompanyLossSetManagementServiceClient Class
ReinsuranceCompanyLossSetManagementServiceClient Members