Click or drag to resize

AdministrationClientSelectCardsByBatch Method

Syntax
C#
public ResultOfPagedCollectionOfBatchCard SelectCardsByBatch(
	ManagementGroupRequestOfBatchCardSearch request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfBatchCardSearch

Return Value

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

  var batchCardSearch = new AdministrationService.BatchCardSearch();
  batchCardSearch.BatchRSN = new Guid("bc0c4496-a7ca-4fb1-a11a-d288534913af");; //Required from AdministrationService.OpenCardBatch(ResultOfBatch.BatchRSN)
  batchCardSearch.PageNumber = 1; //Optional
  batchCardSearch.PageSize = 50; //Optional

  request.Value = batchCardSearch;
  AdministrationService.ResultOfPagedCollectionOfBatchCard result = svc.SelectCardsByBatch(request);

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