Touchstone Re 2023 API Reference
RemovePortfolioLayers Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsurancePortfolioManagementServiceClient Class : RemovePortfolioLayers Method
Contains a RemovePortfolioLayersRequest that identifies the Layer Sequential Identifiers (SIDs) for the layers to remove, as well as the Business Unit SID and SQL Instance SID associated with the static portfolio.
Removes one or more reinsurance treaties (or Layers) from an existing Touchstone Re Static Portfolio.

If you remove a layer from a static portfolio, the layer persists and remains associated with a company.

Syntax
Public Function RemovePortfolioLayers( _
   ByVal request As RemovePortfolioLayersRequest _
) As RemovePortfolioLayersResponse
Dim instance As ReinsurancePortfolioManagementServiceClient
Dim request As RemovePortfolioLayersRequest
Dim value As RemovePortfolioLayersResponse
 
value = instance.RemovePortfolioLayers(request)

Parameters

request
Contains a RemovePortfolioLayersRequest that identifies the Layer Sequential Identifiers (SIDs) for the layers to remove, as well as the Business Unit SID and SQL Instance SID associated with the static portfolio.

Return Value

A RemovePortfolioLayersResponse that contains the status of the deletion.
Remarks

To find the Layer SIDs to pass into this method, call the GetPortfolioStatic() method.

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 program SID to pass into this method, call the GetPrograms() method.

Example
The following example shows how to delete one or more reinsurance treaties (or layers) from an existing static portfolio using the RemovePortfolioLayers() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.PortfolioManagement.Api;
using System;
using System.Collections.Generic;
            
class SnippetPortfolioAPIs
{
    private static void RemovePortfolioLayers(int businessUnitSid, int sqlInstanceSid, int portfolioSid, List<int> layerSids)
    {
        ReinsurancePortfolioManagementServiceClient client = new ReinsurancePortfolioManagementServiceClient();
            
        RemovePortfolioLayersRequest request = new RemovePortfolioLayersRequest();
        //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;
        //Set the LayerSids property. (required property)
        request.LayerSids = layerSids;
        //Submit the request and get response back
        RemovePortfolioLayersResponse response = client.RemovePortfolioLayers(request);
        //Validate the response. Response is valid if Response.Status.Code is equal to StatusCode.Success
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Layers removed");
        }
    }
}
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