LoadExtraErrorDetailsFromXml method

Future<bool> LoadExtraErrorDetailsFromXml(
  1. EwsServiceXmlReader reader,
  2. String xmlElementName
)
Reads the headers from a HTTP response a collection of response headers Loads extra error details from XML The reader. The current element name of the extra error details.

Implementation

//        void ReadHeader(WebHeaderCollection responseHeaders)
//        {
//        }

/// <summary>
/// Loads extra error details from XML
/// </summary>
/// <param name="reader">The reader.</param>
/// <param name="xmlElementName">The current element name of the extra error details.</param>
/// <returns>True if the expected extra details is loaded;
/// False if the element name does not match the expected element. </returns>
Future<bool> LoadExtraErrorDetailsFromXml(
    EwsServiceXmlReader reader, String xmlElementName) async {
  if (reader.IsStartElementWithNamespace(
          XmlNamespace.Messages, XmlElementNames.MessageXml) &&
      !reader.IsEmptyElement) {
    await this.ParseMessageXml(reader);

    return true;
  } else {
    return false;
  }
}