Retrieves a list of the existing
Reinsurance Program Relationships associated with a given
Reinsurance Program in a given
Business Unit,
SQL Server Instance, and
Company.
A Relationship defines the association between two Reinsurance Programs. Specifically, the relationship specifies which program inures to the benefit of the other program, the financial perspective of the association, and the relavant participation level. One reinsurance program may have many relationships.
Syntax
Public Function GetExistingProgramRelationships( _
ByVal As GetExistingProgramRelationshipsRequest _
) As GetExistingProgramRelationshipsResponse
Dim instance As ReinsuranceProgramManagementServiceClient
Dim request As GetExistingProgramRelationshipsRequest
Dim value As GetExistingProgramRelationshipsResponse
value = instance.GetExistingProgramRelationships(request)
public GetExistingProgramRelationshipsResponse GetExistingProgramRelationships(
GetExistingProgramRelationshipsRequest
)
Parameters
- request
- Contains a GetExistingProgramRelationshipsRequest that identifies the Business Unit Sequential Identifier (SID), SQL Instance SID, Company SID, and Program SID associated with the list of relationships to retrieve.
Return Value
A GetExistingProgramRelationshipsResponse that contains a list of relationships associated with the specified SQL server instance, business unit, company, and program.
Example
The following example shows how to retrieve a list of the existing relationships associated with a reinsurance program using the
GetExistingProgramRelationships()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.ProgramManagement.Api;
using System;
class SnippetGetExistingProgramRelationships
{
private static void GetExistingProgramRelationships(int businessUnitSid, int sqlInstanceSid, int companySid, int programSid)
{
ReinsuranceProgramManagementServiceClient client = new ReinsuranceProgramManagementServiceClient();
GetExistingProgramRelationshipsRequest request = new GetExistingProgramRelationshipsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.CompanySid = companySid;
request.ProgramSid = programSid;
GetExistingProgramRelationshipsResponse response = client.GetExistingProgramRelationships(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (var relationship in response.ProgramRelationships)
{
Console.WriteLine("------------------------------------------------------------");
Console.WriteLine("Subject Program SID: " + relationship.SubjectProgramSid);
Console.WriteLine("Child Program SID: " + relationship.InuringSourcingProgramSid);
Console.WriteLine("Is Source Program: " + relationship.IsSourcing);
Console.WriteLine("Perspective: " + relationship.Perspectives);
Console.WriteLine("Participation: " + relationship.Participation);
Console.WriteLine("Participation Amount: " + relationship.ParticipationAmount);
}
}
}
}
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