LoadFromXml static method

Future<WebClientUrlCollection> LoadFromXml(
  1. EwsXmlReader reader
)
Loads instance of WebClientUrlCollection from XML. The reader.

Implementation

static Future<WebClientUrlCollection> LoadFromXml(EwsXmlReader reader) async {
  WebClientUrlCollection instance = new WebClientUrlCollection();

  do {
    await reader.Read();

    if ((reader.NodeType == XmlNodeType.Element) &&
        (reader.LocalName == XmlElementNames.WebClientUrl)) {
      instance.Urls!.add(await WebClientUrl.LoadFromXml(reader));
    }
  } while (!reader.IsEndElementWithNamespace(
      XmlNamespace.Autodiscover, XmlElementNames.WebClientUrls));

  return instance;
}