Touchstone 11.0 API Reference
GetAllCompanyLossSets Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceCompanyLossSetManagementServiceClient Class : GetAllCompanyLossSets Method
Contains a GetAllCompanyLossSetsRequest that specifies the Business Unit SID and SQL Instance SID associated with the CLF or company loss association.
Submits a request to retrieve the list of all company loss file (CLF) sets or company loss association.

A company loss file set can include a set of company loss files or company loss associations including company loss file set name, company name, program names, portfolio names, expiration date, compatible model versions, and so on.

Syntax
Public Function GetAllCompanyLossSets( _
   ByVal request As GetAllCompanyLossSetsRequest _
) As GetAllCompanyLossSetsResponse
Dim instance As ReinsuranceCompanyLossSetManagementServiceClient
Dim request As GetAllCompanyLossSetsRequest
Dim value As GetAllCompanyLossSetsResponse
 
value = instance.GetAllCompanyLossSets(request)
public GetAllCompanyLossSetsResponse GetAllCompanyLossSets( 
   GetAllCompanyLossSetsRequest request
)

Parameters

request
Contains a GetAllCompanyLossSetsRequest that specifies the Business Unit SID and SQL Instance SID associated with the CLF or company loss association.

Return Value

A GetAllCompanyLossSetsResponse that contains the CompanyLossSetsField that uniquely identifies the asynchronous web service call that you made to retrieve the list of CLF sets using the GetAllCompanyLossSets() method.
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 CLF Set SID to pass into this method, call the GetAllCompanyLossSets() method.

Example
The following example shows how to retrieve the list of all company loss file sets or company loss association using the GetAllCompanyLossSets() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyLossSetManagement.Api;
using System;
            
class SnippetGetAllCompanyLossSets
{
private static void GetAllCompanyLossSets(int businessUnitSid, int sqlInstanceSid, int programSid, int subjectProgramSid, int inuringProgramSid)
{
ReinsuranceCompanyLossSetManagementServiceClient client = new ReinsuranceCompanyLossSetManagementServiceClient();
            
GetAllCompanyLossSetsRequest request = new GetAllCompanyLossSetsRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ClsInstalledBeforeDate = DateTime.Now.AddYears(-1);
request.ModelCompatibility = AIR.Services.Reinsurance.Common.Data.ModelCompatibility.Latest;
request.ProgramExpiresBeforeDate = DateTime.Now.AddYears(-1);
GetAllCompanyLossSetsResponse response = client.GetAllCompanyLossSets(request);
   if (response.Status.Code == StatusCode.Success)
   {
       foreach (var clfSet in response.CompanyLossSets)
       {
Console.WriteLine("Sid: " + clfSet.CompanyLossSetSid);
Console.WriteLine("Name: " + clfSet.CompanyLossSetName);
Console.WriteLine("InstalledBy: " + clfSet.InstalledBy);
Console.WriteLine("LossSetExtension: " + clfSet.LossSetExtension);
Console.WriteLine("LossSetSize: " + clfSet.LossSetSize);
Console.WriteLine("PortfolioNames: " + clfSet.PortfolioNames);
Console.WriteLine("RdsModelIds: " + clfSet.RdsModelIds);
Console.WriteLine("StochasticModelIds: " + clfSet.StochasticModelIds);
}
}
}
}
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

ReinsuranceCompanyLossSetManagementServiceClient Class
ReinsuranceCompanyLossSetManagementServiceClient Members