Click or drag to resize

AdministrationClientSelectRegion Method

Return the Region Details from the submitted Region RSN.

The Region RSN can be fetched from the Web Service Method: SelectRegion.

Syntax
C#
public ResultOfRegion SelectRegion(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfRegion
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfguid();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin
  request.Value = new Guid("2836bddc-f244-4f00-8ce9-6a75fc06a2fd");; //Required - RSN of region

  AdministrationService.ResultOfRegion result = svc.SelectRegion(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed          
    throw new Exception(result.FaultDescription);
  }
}
See Also