Touchstone Re 2023 API Reference
GetReinsurancePrograms Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceManagementServiceClient Class : GetReinsurancePrograms Method
Contains a GetContractsRequest that identifies the Touchstone-generated Business Unit Sequential Identifier (SID), SQL Instance SID, and Project SID associated with the list of Reinsurance Programs that you want to retrieve.
Retrieves a list of all existing Touchstone® Reinsurance Programs for a given Project within a specific Business Unit and SQL Server Instance.
Syntax
Public Function GetReinsurancePrograms( _
   ByVal request As GetReinsuranceProgramsRequest _
) As GetReinsuranceProgramsResponse
Dim instance As ReinsuranceManagementServiceClient
Dim request As GetReinsuranceProgramsRequest
Dim value As GetReinsuranceProgramsResponse
 
value = instance.GetReinsurancePrograms(request)
public GetReinsuranceProgramsResponse GetReinsurancePrograms( 
   GetReinsuranceProgramsRequest request
)

Parameters

request
Contains a GetContractsRequest that identifies the Touchstone-generated Business Unit Sequential Identifier (SID), SQL Instance SID, and Project SID associated with the list of Reinsurance Programs that you want to retrieve.

Return Value

A GetReinsuranceProgramsResponse containing a list of Reinsurance Programs in the specified Project within the specified SQL Server Instance and Business Unit.
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 Project SID to pass into this method, call the GetProjects() method.

Example
The following example shows how to retrieve a list of all Touchstone Reinsurance Programs for a given Project within a specific Business Unit and SQL Server Instance using the GetReinsurancePrograms() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.Api;
using AIR.Services.Reinsurance.Data;
            
class SnippetGetReinsuranceProgramsRequest
{
    private static void GetReinsurancePrograms(int businessUnitSid, int sqlInstanceSid, int projectSid)
    {
        ReinsuranceManagementServiceClient client = new ReinsuranceManagementServiceClient();
        GetReinsuranceProgramsRequest request = new GetReinsuranceProgramsRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.ProjectSid = projectSid;
            
        GetReinsuranceProgramsResponse response = client.GetReinsurancePrograms(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("************** Reinsurance Programs **************");
            foreach (ReinsuranceProgram program in response.ReinsurancePrograms)
            {
                Console.WriteLine("Program Name: " + program.Name + "  Program SID: " + program.Sid);
            }
        }
    }
}
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