Click or drag to resize

AdministrationClientSelectMembersWithoutSecurityAccount Method

Syntax
C#
public ResultOfPagedCollectionOfMemberStub SelectMembersWithoutSecurityAccount(
	ManagementGroupRequestOfMemberSearchFilter request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfMemberSearchFilter

Return Value

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

  var memberSearchFilter = new AdministrationService.MemberSearchFilter();
  memberSearchFilter.ActiveMembership = true; //Optional
  memberSearchFilter.CardOrVoucher = string.Empty; //Optional
  memberSearchFilter.CompanyName = string.Empty; //Optional
  memberSearchFilter.CustomerAccountID = string.Empty; //Optional
  memberSearchFilter.EmailAddress = string.Empty; //Optional
  memberSearchFilter.FamilyName = string.Empty; //Optional
  memberSearchFilter.GivenName = string.Empty; //Optional
  memberSearchFilter.PageNumber = 1; //Optional
  memberSearchFilter.PageSize = 10; //Optional
  memberSearchFilter.Partner_RSN = Guid.Empty; //Optional
  memberSearchFilter.PhoneLocal = string.Empty; //Optional
  memberSearchFilter.PostCode = string.Empty; //Optional
  memberSearchFilter.ProgramCode = string.Empty; //Optional

  request.Value = memberSearchFilter;

  AdministrationService.ResultOfPagedCollectionOfMemberStub result = svc.SelectMembersWithoutSecurityAccount(request);

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