WriteElementsToXml method

  1. @override
void WriteElementsToXml(
  1. EwsServiceXmlWriter writer
)
override
Writes XML elements. The writer.

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  if (this.SavedItemsDestinationFolder != null) {
    writer.WriteStartElement(
        XmlNamespace.Messages, XmlElementNames.SavedItemFolderId);
    this.SavedItemsDestinationFolder!.WriteToXmlElemenetName(writer);
    writer.WriteEndElement();
  }

  writer.WriteStartElement(
      XmlNamespace.Messages, XmlElementNames.ItemChanges);

  for (Item item in this._items) {
    item.WriteToXmlForUpdate(writer);
  }

  writer.WriteEndElement();
}