Public Function SubmitDeleteCompany( _
ByVal As SubmitDeleteCompanyRequest _
) As SubmitDeleteCompanyResponse
Dim instance As CompanyManagementServiceClient
Dim request As SubmitDeleteCompanyRequest
Dim value As SubmitDeleteCompanyResponse
value = instance.SubmitDeleteCompany(request)
public SubmitDeleteCompanyResponse SubmitDeleteCompany(
SubmitDeleteCompanyRequest
)
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.
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);
}
}
}
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