Click or drag to resize

AdministrationClientSelectPagedSecurityAccountList Method

Syntax
C#
public ResultOfPagedCollectionOfSecurityAccount SelectPagedSecurityAccountList(
	ManagementGroupRequestOfSecurityAccountSearch request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfSecurityAccountSearch

Return Value

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

  var securityAccountSearch = new AdministrationService.SecurityAccountSearch();
  securityAccountSearch.AccountOwnerName = string.Empty; //Optional
  securityAccountSearch.Email = string.Empty; //Optional
  securityAccountSearch.ManagementGroups = new string[] { "LOYALTY_MEMBER" }; //Optional
  securityAccountSearch.Partner_RSN = Guid.Empty; //Optional
  securityAccountSearch.UserName = string.Empty; //Optional
  securityAccountSearch.PageNumber = 1; //Optional
  securityAccountSearch.PageSize = 10; //Optional 

  request.Value = securityAccountSearch;

  AdministrationService.ResultOfPagedCollectionOfSecurityAccount result = svc.SelectPagedSecurityAccountList(request);

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