WriteToXml method

void WriteToXml(
  1. EwsServiceXmlWriter writer
)
Writes to XML. The writer.

Implementation

void WriteToXml(EwsServiceXmlWriter writer) {
  writer.WriteStartElement(XmlNamespace.Messages, XmlElementNames.GroupBy);
  writer.WriteAttributeValue(XmlAttributeNames.Order, this.SortDirection);

  this.GroupOn!.WriteToXml(writer);

  writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.AggregateOn);
  writer.WriteAttributeValue(XmlAttributeNames.Aggregate, this.AggregateType);

  this.AggregateOn!.WriteToXml(writer);

  writer.WriteEndElement(); // AggregateOn

  writer.WriteEndElement(); // GroupBy
}