Touchstone Re 2023 API Reference
GetAggregateProgramAnalysisTemplates Method
Example 


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

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

Syntax
Public Function GetAggregateProgramAnalysisTemplates( _
   ByVal request As GetAggregateProgramAnalysisTemplatesRequest _
) As GetAggregateProgramAnalysisTemplatesResponse
Dim instance As ObjectManagementServiceClient
Dim request As GetAggregateProgramAnalysisTemplatesRequest
Dim value As GetAggregateProgramAnalysisTemplatesResponse
 
value = instance.GetAggregateProgramAnalysisTemplates(request)

Parameters

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

Return Value

A GetAggregateProgramAnalysisTemplatesResponse 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 program loss templates associated with a given Business Unit using the GetAggregateProgramAnalysisTemplates() method:
using AIR.Services.Common.Data;
using AIR.Services.ObjectManagement.Api;
using System;
            
class SnippetGetAggregateProgramAnalysisTemplatesRequest
{
private static void GetAggregateProgramAnalysisTemplatesRequest(int businessUnitSid, int sqlInstanceSid)
{
ObjectManagementServiceClient client = new ObjectManagementServiceClient();
GetAggregateProgramAnalysisTemplatesRequest request = new GetAggregateProgramAnalysisTemplatesRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
             
GetAggregateProgramAnalysisTemplatesResponse response = client.GetAggregateProgramAnalysisTemplates(request);
    if (response.Status.Code == StatusCode.Success)
   {
       foreach (var template in response.ProgramAggregateLossAnalysisTemplates)
       {
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