Touchstone Re 2023 API Reference
GetReinsuranceProgram Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceManagementServiceClient Class : GetReinsuranceProgram Method
Contains a GetReinsuranceProgramRequest that identifies the ProgramSid associated with the Reinsurance Program.
Fetches the Reinsurance Program and the Reinsurance Treaty associated with this program.
Syntax
Public Function GetReinsuranceProgram( _
   ByVal request As GetReinsuranceProgramRequest _
) As GetReinsuranceProgramResponse
Dim instance As ReinsuranceManagementServiceClient
Dim request As GetReinsuranceProgramRequest
Dim value As GetReinsuranceProgramResponse
 
value = instance.GetReinsuranceProgram(request)
public GetReinsuranceProgramResponse GetReinsuranceProgram( 
   GetReinsuranceProgramRequest request
)

Parameters

request
Contains a GetReinsuranceProgramRequest that identifies the ProgramSid associated with the Reinsurance Program.

Return Value

A GetReinsuranceProgramResponse containing the sequential identifier of the Reinsurance Program in Touchstone.

Example
The following example shows how to obtain a Reinsurance Program using the GetReinsuranceProgram() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.Api;
using System;
            
class SnippetGetReinsuranceProgramRequest
{
   private static void GetReinsuranceProgramRequest(int businessUnitSid, int sqlInstanceSid, int programSid)
   {
       ReinsuranceManagementServiceClient client = new ReinsuranceManagementServiceClient();
       GetReinsuranceProgramRequest request = new GetReinsuranceProgramRequest();
       request.BusinessUnitSid = businessUnitSid;
       request.SqlInstanceSid = sqlInstanceSid;
       request.ProgramSid = programSid;
            
       GetReinsuranceProgramResponse response = client.GetReinsuranceProgram(request);
       if (response.Status.Code == StatusCode.Success)
       {
           Console.WriteLine("Program Name: " + response.Program.ProgramName);
           if (response.Program.Treaties != null)
               Console.WriteLine("Program Treaties: " + response.Program.Treaties.Count);
       }
   }
}
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

ReinsuranceManagementServiceClient Class
ReinsuranceManagementServiceClient Members