Class ServiceResponse
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents the standard response to an Exchange Web Services operation.
public class ServiceResponse
- Inheritance
-
ServiceResponse
- Derived
- Inherited Members
Properties
ErrorCode
Gets the error code associated with this response.
public ServiceError ErrorCode { get; }
Property Value
ErrorDetails
Gets error details associated with the response. If Result is set to Success, ErrorDetailsDictionary returns null. Error details will only available for some error codes. For example, when error code is ErrorRecurrenceHasNoOccurrence, the ErrorDetailsDictionary will contain keys for EffectiveStartDate and EffectiveEndDate.
public IDictionary<string, string> ErrorDetails { get; }
Property Value
- IDictionary<string, string>
The error details dictionary.
ErrorMessage
Gets a detailed error message associated with the response. If Result is set to Success, ErrorMessage returns null. ErrorMessage is localized according to the PreferredCulture property of the ExchangeService object that was used to call the method that generated the response.
public string ErrorMessage { get; }
Property Value
ErrorProperties
Gets information about property errors associated with the response. If Result is set to Success, ErrorProperties returns null. ErrorProperties is only available for some error codes. For example, when the error code is ErrorInvalidPropertyForOperation, ErrorProperties will contain the definition of the property that was invalid for the request.
public Collection<PropertyDefinitionBase> ErrorProperties { get; }
Property Value
- Collection<PropertyDefinitionBase>
The error properties list.
Result
Gets the result associated with this response.
public ServiceResult Result { get; }