/// <summary>
        /// Loads from XML.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal void LoadFromXml(EwsXmlReader reader)
        {
            do
            {
                reader.Read();

                if (reader.NodeType == XmlNodeType.Element)
                {
                    switch (reader.LocalName)
                    {
                    case XmlElementNames.ErrorCode:
                        this.errorCode = reader.ReadElementValue <AutodiscoverErrorCode>();
                        break;

                    case XmlElementNames.ErrorMessage:
                        this.errorMessage = reader.ReadElementValue();
                        break;

                    case XmlElementNames.SettingName:
                        this.settingName = reader.ReadElementValue();
                        break;
                    }
                }
            }while (!reader.IsEndElement(XmlNamespace.Autodiscover, XmlElementNames.DomainSettingError));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserSettingError"/> class.
 /// </summary>
 /// <param name="errorCode">The error code.</param>
 /// <param name="errorMessage">The error message.</param>
 /// <param name="settingName">Name of the setting.</param>
 internal UserSettingError(
     AutodiscoverErrorCode errorCode,
     string errorMessage,
     string settingName)
 {
     this.ErrorCode = errorCode;
     this.ErrorMessage = errorMessage;
     this.SettingName = settingName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserSettingError"/> class.
 /// </summary>
 /// <param name="errorCode">The error code.</param>
 /// <param name="errorMessage">The error message.</param>
 /// <param name="settingName">Name of the setting.</param>
 internal UserSettingError(
     AutodiscoverErrorCode errorCode,
     string errorMessage,
     string settingName)
 {
     this.ErrorCode    = errorCode;
     this.ErrorMessage = errorMessage;
     this.SettingName  = settingName;
 }
        /// <summary>
        /// Loads from XML.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal void LoadFromXml(EwsXmlReader reader)
        {
            do
            {
                reader.Read();

                if (reader.NodeType == XmlNodeType.Element)
                {
                    switch (reader.LocalName)
                    {
                        case XmlElementNames.ErrorCode:
                            this.errorCode = reader.ReadElementValue<AutodiscoverErrorCode>();
                            break;
                        case XmlElementNames.ErrorMessage:
                            this.errorMessage = reader.ReadElementValue();
                            break;
                        case XmlElementNames.SettingName:
                            this.settingName = reader.ReadElementValue();
                            break;
                    }
                }
            }
            while (!reader.IsEndElement(XmlNamespace.Autodiscover, XmlElementNames.DomainSettingError));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AutodiscoverResponseException"/> class.
 /// </summary>
 /// <param name="errorCode">The error code.</param>
 /// <param name="message">The message.</param>
 internal AutodiscoverResponseException(AutodiscoverErrorCode errorCode, string message)
     : base(message)
 {
     this.errorCode = errorCode;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AutodiscoverResponseException"/> class.
 /// </summary>
 /// <param name="errorCode">The error code.</param>
 /// <param name="message">The message.</param>
 internal AutodiscoverResponseException(AutodiscoverErrorCode errorCode, string message)
     : base(message)
 {
     this.errorCode = errorCode;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Microsoft.Exchange.WebServices.Data.AutodiscoverResponseException"/> class with serialized data.
 /// </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>
 protected AutodiscoverResponseException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     this.errorCode = (AutodiscoverErrorCode)info.GetInt32("ErrorCode");
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AutodiscoverResponse"/> class.
 /// </summary>
 internal AutodiscoverResponse()
 {
     this.errorCode = AutodiscoverErrorCode.NoError;
     this.errorMessage = Strings.NoError;
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutodiscoverResponse"/> class.
 /// </summary>
 internal AutodiscoverResponse()
 {
     this.errorCode    = AutodiscoverErrorCode.NoError;
     this.errorMessage = Strings.NoError;
 }