WriteElementsToXml method
Writes XML elements.
The writer.
Implementation
@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
this.PropertySet!.WriteToXml(writer, ServiceObjectType.Item);
writer.WriteStartElement(
XmlNamespace.Messages, XmlElementNames.SyncFolderId);
this.SyncFolderId!.WriteToXmlElemenetName(writer);
writer.WriteEndElement();
writer.WriteElementValueWithNamespace(
XmlNamespace.Messages, XmlElementNames.SyncState, this.SyncState);
this
.IgnoredItemIds
.WriteToXml(writer, XmlNamespace.Messages, XmlElementNames.Ignore);
writer.WriteElementValueWithNamespace(XmlNamespace.Messages,
XmlElementNames.MaxChangesReturned, this.MaxChangesReturned);
if (this.Service.RequestedServerVersion.index >=
ExchangeVersion.Exchange2010.index) {
writer.WriteElementValueWithNamespace(
XmlNamespace.Messages, XmlElementNames.SyncScope, this._syncScope);
}
if (this.NumberOfDays != 0) {
writer.WriteElementValueWithNamespace(XmlNamespace.Messages,
XmlElementNames.NumberOfDays, this._numberOfDays);
}
}