Retrieves a list of the existing
company loss sets in a given
Business Unit,
SQL Server Instance, and
company.
Public Function GetCompanyLossSets( _
ByVal As GetCompanyLossSetsRequest _
) As GetCompanyLossSetsResponse
Dim instance As ReinsuranceCompanyLossSetManagementServiceClient
Dim request As GetCompanyLossSetsRequest
Dim value As GetCompanyLossSetsResponse
value = instance.GetCompanyLossSets(request)
public GetCompanyLossSetsResponse GetCompanyLossSets(
GetCompanyLossSetsRequest
)
Parameters
- request
- Contains a GetCompanyLossSetsRequest that identifies the Business Unit Sequential Identifier (SID), SQL Instance SID, and company SID associated with the list of company loss sets to retrieve.
Return Value
A GetCompanyLossSetsResponse that contains a list of company loss sets in the specified SQL server instance, business unit, and company.
The following example shows how to retrieve a list of the existing Company Loss Sets in a given company using the
GetCompanyLossSets()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyLossSetManagement.Api;
using System;
class SnippetGetCompanyLossSets
{
private static void GetCompanyLossSets(int businessUnitSid, int sqlInstanceSid, int companySid)
{
ReinsuranceCompanyLossSetManagementServiceClient client = new ReinsuranceCompanyLossSetManagementServiceClient();
GetCompanyLossSetsRequest request = new GetCompanyLossSetsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.CompanySid = companySid;
GetCompanyLossSetsResponse response = client.GetCompanyLossSets(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (var clfSet in response.CompanyLossSets)
{
Console.WriteLine("Parent CLf Sid: " + clfSet.ParentClfSetSid);
Console.WriteLine("Sid: " + clfSet.Sid);
Console.WriteLine("Name: " + clfSet.Name);
}
}
}
}
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