ReadElementsFromXml method

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

Implementation

@override
Future<void> ReadElementsFromXml(EwsServiceXmlReader reader) async {
  await super.ReadElementsFromXml(reader);

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

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

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