Click or drag to resize

LoyaltyClientSelectMember Method

Syntax
C#
public ResultOfMember SelectMember(
	ManagementGroupRequestOfSelectMember request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfSelectMember

Return Value

Type: ResultOfMember
Examples
C#
using (var svc = new LoyaltyService.LoyaltyClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfSelectMember();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var search = new LoyaltyService.SelectMember();
  search.MemberRSN = new Guid("d51af9f0-ddbb-4b28-ad39-ace5925886e2");;//Required - RSN of member
  search.MemberType = "Person";//Required - Valid values are : 'Person' or 'Organisation'

  //add search to request
  request.Value = search;

  LoyaltyService.ResultOfMember result = svc.SelectMember(request);

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