TryReadElementFromXml method

  1. @override
Future<bool> TryReadElementFromXml(
  1. EwsServiceXmlReader reader
)
override
Tries to read the element at the current position of the reader. The reader to read the element from.

Implementation

@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
  bool result = await super.TryReadElementFromXml(reader);

  if (!result) {
    this._item =
        EwsUtilities.CreateItemFromXmlElementName(this, reader.LocalName);

    if (this._item != null) {
      await this._item!.LoadFromXml(reader, true /* clearPropertyBag */);
    }
  }

  return result;
}