AdministrationClientCancelMemberBatch Method |
Cancel the processing of a queued batch of Members, from the submitted Batch RSN. A batch cannot be cancelled after it has been processed.
This method is a step in the workflow for Member File Batch submission.
public ResultOfBatch CancelMemberBatch( ManagementGroupRequestOfguid CancelBatch )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfguid(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin request.Value = new Guid("6d0a3c28-ed82-46c8-af54-f72c0c0734db");; //Required - Returned from AdministrationService.OpenMemberBatch (ResultOfBatch.Key) AdministrationService.ResultOfBatch result = svc.CancelMemberBatch(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }