AdministrationClientSelectMembers Method |
Return a collection of Members, filtered from the submitted values.
Pagination parameters are available to format the response.
public ResultOfPagedCollectionOfMemberStub SelectMembers( ManagementGroupRequestOfMemberSearchFilter request )
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.SelectMembers(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }