TryReadElementFromXml method

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

Implementation

@override
bool TryReadElementFromXml(EwsServiceXmlReader reader) {
  switch (reader.LocalName) {
    case XmlElementNames.FlagStatus:
      this.flagStatus = reader.ReadElementValue<ItemFlagStatus>();
      return true;
    case XmlElementNames.StartDate:
      this.startDate = reader.ReadElementValueAsDateTime();
      return true;
    case XmlElementNames.DueDate:
      this.dueDate = reader.ReadElementValueAsDateTime();
      return true;
    case XmlElementNames.CompleteDate:
      this.completeDate = reader.ReadElementValueAsDateTime();
      return true;
    default:
      return false;
  }
}