ErrorHandlingMode property

ServiceErrorHandling? ErrorHandlingMode
Ends executing this async request. The async result / EwsUtilities.Assert( / serviceResponses.Count == 1, / "MultiResponseServiceRequest.Execute", / "ServiceErrorHandling.ThrowOnError error handling is only valid for singleton request"); Gets a value indicating how errors should be handled.

Implementation

//        ServiceResponseCollection<TResponse> EndExecute(IAsyncResult asyncResult)
//        {
//            ServiceResponseCollection<TResponse> serviceResponses = (ServiceResponseCollection<TResponse>)this.EndInternalExecute(asyncResult);
//
//            if (this.ErrorHandlingMode == ServiceErrorHandling.ThrowOnError)
//            {
////                EwsUtilities.Assert(
////                    serviceResponses.Count == 1,
////                    "MultiResponseServiceRequest.Execute",
////                    "ServiceErrorHandling.ThrowOnError error handling is only valid for singleton request");
//
//                serviceResponses[0].ThrowIfNecessary();
//            }
//
//            return serviceResponses;
//        }

/// <summary>
/// Gets a value indicating how errors should be handled.
/// </summary>
ServiceErrorHandling? get ErrorHandlingMode => this.errorHandlingMode;