WriteElementsToXml method

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

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  this.PropertySet!.WriteToXml(writer, ServiceObjectType.Folder);

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

  writer.WriteElementValueWithNamespace(
      XmlNamespace.Messages, XmlElementNames.SyncState, this.SyncState);
}