Touchstone Re 2023 API Reference
GetAggregatePortfolioAnalysisTemplates Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ObjectManagementServiceClient Class : GetAggregatePortfolioAnalysisTemplates Method
Contains a GetAggregatePortfolioAnalysisTemplatesRequest that identifies the Business Unit SID and SQL Instance SID associated with the portfolio loss analysis templates to retrieve.
Retrieves a list of portfolio loss analysis templates.

You can manage the loss templates from the Touchstone Re application.

Syntax
Public Function GetAggregatePortfolioAnalysisTemplates( _
   ByVal request As GetAggregatePortfolioAnalysisTemplatesRequest _
) As GetAggregatePortfolioAnalysisTemplatesResponse
Dim instance As ObjectManagementServiceClient
Dim request As GetAggregatePortfolioAnalysisTemplatesRequest
Dim value As GetAggregatePortfolioAnalysisTemplatesResponse
 
value = instance.GetAggregatePortfolioAnalysisTemplates(request)

Parameters

request
Contains a GetAggregatePortfolioAnalysisTemplatesRequest that identifies the Business Unit SID and SQL Instance SID associated with the portfolio loss analysis templates to retrieve.

Return Value

A GetAggregatePortfolioAnalysisTemplatesResponse containing a list of Portfolio Aggregate Loss Analysis Templates in the specified business unit and SQL Server instance.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Server Instance SID to pass into this method, call the GetSqlInstances() method.

Example
The following example shows how to get all the portfolio loss templates associated with a given Business Unit using the GetAggregatePortfolioAnalysisTemplates() method:
using AIR.Services.Common.Data;
using AIR.Services.ObjectManagement.Api;
using System;
            
class SnippetGetAggregatePortfolioAnalysisTemplatesRequest
{
private static void GetAggregatePortfolioAnalysisTemplatesRequest(int businessUnitSid, int sqlInstanceSid)
{
ObjectManagementServiceClient client = new ObjectManagementServiceClient();
GetAggregatePortfolioAnalysisTemplatesRequest request = new GetAggregatePortfolioAnalysisTemplatesRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
            
GetAggregatePortfolioAnalysisTemplatesResponse response = client.GetAggregatePortfolioAnalysisTemplates(request);
       if (response.Status.Code == StatusCode.Success)
   {
       foreach (var template in response.PortfolioAggregateLossAnalysisTemplates)
       {
Console.WriteLine("SID: " + template.Sid + " Name: " + template.Name);
}
}
}
}
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

ObjectManagementServiceClient Class
ObjectManagementServiceClient Members