Click or drag to resize

AdministrationClientSelectDistrict Method

Return the District Details from the submitted District RSN.

The District RSN can be fetched from the Web Service Method: SelectDistrict.

Syntax
C#
public ResultOfDistrict SelectDistrict(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfDistrict
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("f94815b1-235e-4cb4-b615-60e59f50d4ab");; // Required - RSN of district

  AdministrationService.ResultOfDistrict result = svc.SelectDistrict(request);

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