Public Function SubmitDeleteProgram( _
ByVal As SubmitDeleteProgramRequest _
) As SubmitDeleteProgramResponse
Dim instance As ReinsuranceProgramManagementServiceClient
Dim request As SubmitDeleteProgramRequest
Dim value As SubmitDeleteProgramResponse
value = instance.SubmitDeleteProgram(request)
public SubmitDeleteProgramResponse SubmitDeleteProgram(
SubmitDeleteProgramRequest
)
Parameters
- request
- Contains a SubmitDeleteProgramRequest that identifies the software-generated sequential identifier (SID) that uniquely identifies the reinsurance program to delete, as well as the Business Unit SID and SQL Instance SID associated with the program.
Return Value
A SubmitDeleteProgramResponse 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 Program using the
SubmitDeleteProgram()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.ProgramManagement.Api;
using System;
class SnippetSubmitDeleteProgram
{
private static void SubmitDeleteProgram(int businessUnitSid, int sqlInstanceSid, int companySid, int programSid)
{
ReinsuranceProgramManagementServiceClient client = new ReinsuranceProgramManagementServiceClient();
SubmitDeleteProgramRequest request = new SubmitDeleteProgramRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.CompanySid = companySid;
request.ProgramSid = programSid;
SubmitDeleteProgramResponse response = client.SubmitDeleteProgram(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Delete program submitted 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