Touchstone Re 2023 API Reference
SubmitDeleteProgram Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceProgramManagementServiceClient Class : SubmitDeleteProgram Method
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.
Deletes a reinsurance program.
Syntax
Public Function SubmitDeleteProgram( _
   ByVal request As SubmitDeleteProgramRequest _
) As SubmitDeleteProgramResponse
Dim instance As ReinsuranceProgramManagementServiceClient
Dim request As SubmitDeleteProgramRequest
Dim value As SubmitDeleteProgramResponse
 
value = instance.SubmitDeleteProgram(request)

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

Example
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);
        }
    }
}
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

ReinsuranceProgramManagementServiceClient Class
ReinsuranceProgramManagementServiceClient Members