LoadFromXml method
Loads from XML.
The reader.
Implementation
Future<void> LoadFromXml(EwsXmlReader reader) async {
do {
await reader.Read();
if (reader.NodeType == XmlNodeType.Element) {
switch (reader.LocalName) {
case XmlElementNames.ErrorCode:
this.ErrorCode =
await reader.ReadElementValue<AutodiscoverErrorCode>();
break;
case XmlElementNames.ErrorMessage:
this.ErrorMessage = await reader.ReadElementValue<String>();
break;
case XmlElementNames.SettingName:
this.SettingName = await reader.ReadElementValue<String>();
break;
}
}
} while (!reader.IsEndElementWithNamespace(
XmlNamespace.Autodiscover, XmlElementNames.UserSettingError));
}