ErrorCode property

AutodiscoverErrorCode? get ErrorCode
Initializes a new instance of the The object that holds the serialized object data. The contextual information about the source or destination. Sets the The object that holds the serialized object data. The contextual information about the source or destination. Gets the ErrorCode for the exception.

Implementation

//		protected AutodiscoverResponseException(SerializationInfo info, StreamingContext context)
//			: super(info, context)
//		{
//			this.errorCode = (AutodiscoverErrorCode)info.GetInt32("ErrorCode");
//		}

/// <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the parameter name and additional exception information.</summary>
/// <param name="info">The object that holds the serialized object data. </param>
/// <param name="context">The contextual information about the source or destination. </param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> object is a null reference (Nothing in Visual Basic). </exception>
//@override
// void GetObjectData(SerializationInfo info, StreamingContext context)
//		{
//			EwsUtilities.Assert(info != null, "AutodiscoverResponseException.GetObjectData", "info is null");
//
//			base.GetObjectData(info, context);
//
//			info.AddValue("ErrorCode", (int)this.errorCode);
//		}

/// <summary>
/// Gets the ErrorCode for the exception.
/// </summary>
AutodiscoverErrorCode? get ErrorCode => this.errorCode;