WriteToXml method

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

Implementation

void WriteToXml(EwsServiceXmlWriter writer, Grouping? groupBy) {
  this
      .GetPropertySetOrDefault()
      .WriteToXml(writer, this.GetServiceObjectType());

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

  this.InternalWriteViewToXml(writer);

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

  this.InternalWriteSearchSettingsToXml(writer, groupBy);
}