LoadFromXmlElementName method

Future<void> LoadFromXmlElementName(
  1. EwsServiceXmlReader reader
)
Loads from XML. The reader.

Implementation

Future<void> LoadFromXmlElementName(EwsServiceXmlReader reader) async {
  do {
    await reader.Read();

    if (reader.NodeType == XmlNodeType.Element) {
      await this.TryReadElementFromXml(reader);
    }
  } while (!reader.IsEndElementWithNamespace(
      XmlNamespace.Types, XmlElementNames.PersonaPostalAddress));
}