ReadElementsFromXml method

  1. @override
void ReadElementsFromXml(
  1. EwsServiceXmlReader reader
)
override
Reads response elements from XML. The reader.

Implementation

@override
void ReadElementsFromXml(EwsServiceXmlReader reader) {
  super.ReadElementsFromXml(reader);

  reader.ReadStartElementWithNamespace(
      XmlNamespace.Messages, XmlElementNames.Attachments);

  reader.Read(nodeType: XmlNodeType.Element);
  this.attachment!.LoadFromXml(reader, reader.LocalName);

  reader.ReadEndElementWithNamespace(
      XmlNamespace.Messages, XmlElementNames.Attachments);
}