Touchstone Re 2023 API Reference
GetAggregateMultiProgramAnalysisTemplates Method
Example 


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

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

Syntax

Parameters

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

Return Value

A GetAggregateMultiProgramAnalysisTemplatesResponse containing a list of Program 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 multi-programs loss templates associated with a given Business Unit using the GetAggregateMultiProgramAnalysisTemplates() method:
using AIR.Services.Common.Data;
using AIR.Services.ObjectManagement.Api;
using System;
            
class SnippetGetAggregateMultiProgramAnalysisTemplatesRequest
{
private static void GetAggregateMultiProgramAnalysisTemplatesRequest(int businessUnitSid, int sqlInstanceSid)
{
ObjectManagementServiceClient client = new ObjectManagementServiceClient();
GetAggregateMultiProgramAnalysisTemplatesRequest request = new GetAggregateMultiProgramAnalysisTemplatesRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
            
GetAggregateMultiProgramAnalysisTemplatesResponse response = client.GetAggregateMultiProgramAnalysisTemplates(request);
        if (response.Status.Code == StatusCode.Success)
   {
       foreach (var template in response.MultiProgramAggregateLossAnalysisTemplates)
       {
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