Retrieves a list of all existing Touchstone®
Reinsurance Programs for a given
Project within a specific
Business Unit and
SQL Server Instance.
Public Function GetReinsurancePrograms( _
ByVal As GetReinsuranceProgramsRequest _
) As GetReinsuranceProgramsResponse
Dim instance As ReinsuranceManagementServiceClient
Dim request As GetReinsuranceProgramsRequest
Dim value As GetReinsuranceProgramsResponse
value = instance.GetReinsurancePrograms(request)
public GetReinsuranceProgramsResponse GetReinsurancePrograms(
GetReinsuranceProgramsRequest
)
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.
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);
}
}
}
}
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