LoadFromXml method

void LoadFromXml(
  1. EwsXmlReader reader,
  2. String endElementName
)
Loads response from XML. The reader. End element name.

Implementation

void LoadFromXml(EwsXmlReader reader, String endElementName) {
  switch (reader.LocalName) {
    case XmlElementNames.ErrorCode:
      this.ErrorCode = reader.ReadElementValue<AutodiscoverErrorCode>();
      break;
    case XmlElementNames.ErrorMessage:
      this.ErrorMessage = reader.ReadElementValue<String>();
      break;
    default:
      break;
  }
}