Touchstone 11.0 API Reference
GetPortfolioStatic Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsurancePortfolioManagementServiceClient Class : GetPortfolioStatic Method
Contains a GetPortfolioStaticRequest that identifies the system-generated portfolio sequential identifier (SID), Business Unit SID, and SQL Instance SID associated with the static portfolio to retrieve.
Retrieves a Touchstone Re Static Portfolio.

A portfolio in Touchstone Re is a collection of reinsurance treaties (or Layers) sourced from various Reinsurance Programs. There are three types of portfolios: master, static, and dynamic.

The master portfolio contains all the treaties in the business unit. A static portfolio is a collection of reinsurance treaties that you explicitly select from the master portfolio. A dynamic portfolio is a collection of reinsurance treaties that you select from the master portfolio by defining a filter. As treaties are added, modified, and removed from the master portfolio, the content of the dynamic portfolio changes automatically.

Syntax
Public Function GetPortfolioStatic( _
   ByVal request As GetPortfolioStaticRequest _
) As GetPortfolioStaticResponse
Dim instance As ReinsurancePortfolioManagementServiceClient
Dim request As GetPortfolioStaticRequest
Dim value As GetPortfolioStaticResponse
 
value = instance.GetPortfolioStatic(request)
public GetPortfolioStaticResponse GetPortfolioStatic( 
   GetPortfolioStaticRequest request
)

Parameters

request
Contains a GetPortfolioStaticRequest that identifies the system-generated portfolio sequential identifier (SID), Business Unit SID, and SQL Instance SID associated with the static portfolio to retrieve.

Return Value

A GetPortfolioStaticResponse containing the Static Portfolio that you requested.
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 Portfolio SID to pass into this method, call the GetPortfolios() method.

Example
The following example shows how to retrieve an existing static portfolio using the GetPortfolioStatic() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.PortfolioManagement.Api;
using System;
            
class SnippetPortfolioAPIs
{
    private static void GetPortfolioStatic(int businessUnitSid, int sqlInstanceSid, int portfolioSid)
    {
        ReinsurancePortfolioManagementServiceClient client = new ReinsurancePortfolioManagementServiceClient();
            
        GetPortfolioStaticRequest request = new GetPortfolioStaticRequest();
        //Set the BusinessUnitSid property (required property)
        request.BusinessUnitSid = businessUnitSid;
        //Set the SqlInstanceSid property (required property)
        request.SqlInstanceSid = sqlInstanceSid;
        //Set the PortfolioSid property. (required property)
        request.PortfolioSid = portfolioSid;
        //Submit the request and get response back
        GetPortfolioStaticResponse response = client.GetPortfolioStatic(request);
        //Validate the response. Response is valid if Response.Status.Code is equal to StatusCode.Success
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Portfolio Name: " + response.Portfolio.Name);
            Console.WriteLine("Description: " + response.Portfolio.Description);
            Console.WriteLine("Layers: " + response.Portfolio.Layers.Count);
        }
    }
}
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

ReinsurancePortfolioManagementServiceClient Class
ReinsurancePortfolioManagementServiceClient Members