Touchstone Re 2023 API Reference
ExportCSVReinsuranceProgram Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceManagementServiceClient Class : ExportCSVReinsuranceProgram Method
Contains an ExportCSVReinsuranceProgramRequest that identifies the FilePath, Program Name, and Project SID associated with the Reinsurance Program that you want to export in CSV format, along with the associated Business Unit SID and SQL Instance SID.
Exports a Reinsurance Program in CSV format from Touchstone®.
Syntax
Public Function ExportCSVReinsuranceProgram( _
   ByVal request As ExportCSVReinsuranceProgramRequest _
) As ExportCSVReinsuranceProgramResponse
Dim instance As ReinsuranceManagementServiceClient
Dim request As ExportCSVReinsuranceProgramRequest
Dim value As ExportCSVReinsuranceProgramResponse
 
value = instance.ExportCSVReinsuranceProgram(request)
public ExportCSVReinsuranceProgramResponse ExportCSVReinsuranceProgram( 
   ExportCSVReinsuranceProgramRequest request
)

Parameters

request
Contains an ExportCSVReinsuranceProgramRequest that identifies the FilePath, Program Name, and Project SID associated with the Reinsurance Program that you want to export in CSV format, along with the associated Business Unit SID and SQL Instance SID.

Return Value

A ExportCSVReinsuranceProgramResponse containing the Reinsurance Program that you have exported in CSV format from Touchstone.

Example
The following example shows how to export a Reinsurance Program file in CSV format using the ExportCSVReinsuranceProgram() method:
using AIR.Services.Common.Data;
 using AIR.Services.Reinsurance.Api;
 using System;
 public class ExportCSVReinsuranceProgramSnippet
 {
            
 private void ExportCSVReinsuranceProgram(int businessUnitSid, int sqlInstanceSid, int projectSid, string filePath, string programName)
 {
 ReinsuranceManagementServiceClient client = new ReinsuranceManagementServiceClient();
 ExportCSVReinsuranceProgramRequest request = new ExportCSVReinsuranceProgramRequest();
 request.BusinessUnitSid = businessUnitSid;
 request.SqlInstanceSid = sqlInstanceSid;
 request.ProjectSid = projectSid;
 request.FilePath = filePath;
 request.ProgramName = programName;
            
 ExportCSVReinsuranceProgramResponse response = client.ExportCSVReinsuranceProgram(request);
    if ((response.Status.Code == StatusCode.Success))
    {
 Console.WriteLine("Successfully exported the reinsurance program.");
 }
 }
}
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

ReinsuranceManagementServiceClient Class
ReinsuranceManagementServiceClient Members