LoadPropertyValueFromXml method

  1. @override
Future<void> LoadPropertyValueFromXml(
  1. EwsServiceXmlReader reader,
  2. PropertyBag propertyBag
)
override
Loads from XML. The reader. The property bag.

Implementation

@override
Future<void> LoadPropertyValueFromXml(
    EwsServiceXmlReader reader, PropertyBag propertyBag) async {
  reader.EnsureCurrentNodeIsStartElementWithNamespace(
      XmlNamespace.Types, this.XmlElementName);

  if (!reader.IsEmptyElement || reader.HasAttributes) {
    await this.InternalLoadFromXml(reader, propertyBag);
  }

  await reader.ReadEndElementIfNecessary(
      XmlNamespace.Types, this.XmlElementName);
}