WriteToXml method

  1. @override
void WriteToXml(
  1. EwsServiceXmlWriter writer,
  2. Grouping? groupBy
)
override
Writes to XML. The writer. The group by clause.

Implementation

@override
void WriteToXml(EwsServiceXmlWriter writer, Grouping? groupBy) {
  if (this.serviceObjType == ServiceObjectType.Item) {
    this
        .GetPropertySetOrDefault()
        .WriteToXml(writer, this.GetServiceObjectType());
  }

  writer.WriteStartElement(
      XmlNamespace.Messages, this.GetViewXmlElementName());

  this.InternalWriteViewToXml(writer);

  writer.WriteEndElement(); // this.GetViewXmlElementName()

  this.InternalWriteSearchSettingsToXml(writer, groupBy);
}