Click or drag to resize

AdministrationClientSelectPagedDistrictList Method

Syntax
C#
public ResultOfPagedCollectionOfDistrict SelectPagedDistrictList(
	ManagementGroupRequestOfDistrictSearch request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfDistrictSearch

Return Value

Type: ResultOfPagedCollectionOfDistrict
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfDistrictSearch();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var districtSearch = new AdministrationService.DistrictSearch();
  districtSearch.Region_RSN = new Guid("dd849a7d-f0a4-4179-8175-579d45f1e3dc");; //Required
  districtSearch.PageNumber = 1; //Optional
  districtSearch.PageSize = 10; //Optional 

  request.Value = districtSearch;

  AdministrationService.ResultOfPagedCollectionOfDistrict result = svc.SelectPagedDistrictList(request);

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