Creates a new, empty Touchstone Re
Company.
Parameters
- request
- Contains a CreateCompanyRequest that identifies the name, identifier, Business Unit Sequential Identifier (SID), and SQL Instance SID to associate with the company to create.
Return Value
A
CreateCompanyResponse that contains a
SID, which uniquely identifies the company that you created.
The following example shows how to create a Company using the
CreateCompany()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyManagement.Api;
using System;
class SnippetCreateCompany
{
private static void CreateCompany(int businessUnitSid, int sqlInstanceSid, string companyName)
{
CompanyManagementServiceClient client = new CompanyManagementServiceClient();
CreateCompanyRequest request = new CreateCompanyRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.Name = companyName;
CreateCompanyResponse response = client.CreateCompany(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Successfully created company: " + companyName + " with Sid: " + response.Sid);
}
}
}
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