Click or drag to resize

LoyaltyCampaignOfferClientSelectProductCategoryList Method

Returns a Paged Collection of all the Product Categories.

Paging parameters can be defined in the request.

Syntax
C#
public ResultOfCollectionOfProductCategory SelectProductCategoryList(
	ManagementGroupRequest request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequest

Return Value

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

  LoyaltyService.ResultOfCollectionOfProductCategory result = svc.SelectProductCategoryList(request);

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