LoadFromXml static method
Loads WebClientUrl instance from XML.
The reader.
Implementation
static Future<WebClientUrl> LoadFromXml(EwsXmlReader reader) async {
WebClientUrl webClientUrl = new WebClientUrl._();
do {
await reader.Read();
if (reader.NodeType == XmlNodeType.Element) {
switch (reader.LocalName) {
case XmlElementNames.AuthenticationMethods:
webClientUrl.AuthenticationMethods =
await reader.ReadElementValue<String>();
break;
case XmlElementNames.Url:
webClientUrl.Url = await reader.ReadElementValue<String>();
break;
}
}
} while (!reader.IsEndElementWithNamespace(
XmlNamespace.Autodiscover, XmlElementNames.WebClientUrl));
return webClientUrl;
}