Touchstone 11.0 API Reference
SubmitDeleteCompany Method
Example 


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

Parameters

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

Return Value

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

Example
The following example shows how to delete an existing Company using the SubmitDeleteCompany() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyManagement.Api;
using System;
            
class SnippetSubmitDeleteCompany
{
    private static void SubmitDeleteCompany(int businessUnitSid, int sqlInstanceSid, int companySid)
    {
        CompanyManagementServiceClient client = new CompanyManagementServiceClient();
        SubmitDeleteCompanyRequest request = new SubmitDeleteCompanyRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.CompanySid = companySid;
        SubmitDeleteCompanyResponse response = client.SubmitDeleteCompany(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Submitted Delete company 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

CompanyManagementServiceClient Class
CompanyManagementServiceClient Members