TryReadElementFromXml method

  1. @override
bool TryReadElementFromXml(
  1. EwsServiceXmlReader reader
)
override
Tries to read element from XML. The reader.

Implementation

@override
bool TryReadElementFromXml(EwsServiceXmlReader reader) {
  if (super.TryReadElementFromXml(reader)) {
    return true;
  } else {
    switch (reader.LocalName) {
      case XmlElementNames.Interval:
        this._interval = reader.ReadElementValue<int>();
        return true;
      default:
        return false;
    }
  }
}