WriteElementsToXml method

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

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  if (this.SearchFilter != null) {
    writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Restriction);
    this.SearchFilter!.WriteToXmlWithWriter(writer);
    writer.WriteEndElement(); // Restriction
  }

  this.RootFolderIds.WriteToXml(writer, XmlElementNames.BaseFolderIds);
}