WriteElementsToXml method

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

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  writer.WriteStartElement(XmlNamespace.Messages, XmlElementNames.ItemIds);

  for (Item item in this.Items!) {
    item.Id!.WriteToXml(writer, XmlElementNames.ItemId);
  }

  writer.WriteEndElement(); // ItemIds

  if (this.SavedCopyDestinationFolderId != null) {
    writer.WriteStartElement(
        XmlNamespace.Messages, XmlElementNames.SavedItemFolderId);
    this.SavedCopyDestinationFolderId!.WriteToXmlElemenetName(writer);
    writer.WriteEndElement();
  }
}