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.
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");
}
}
}
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