TryReadCurrentXmlElement method
Tries to read the current XML element.
The reader.
Implementation
@override
Future<bool> TryReadCurrentXmlElement(EwsXmlReader reader) async {
if (!await super.TryReadCurrentXmlElement(reader)) {
switch (reader.LocalName) {
case XmlElementNames.User:
await this._user.LoadFromXml(reader);
return true;
case XmlElementNames.Account:
await this._account!.LoadFromXml(reader);
return true;
default:
await reader.SkipCurrentElement();
return false;
}
} else {
return true;
}
}