WriteToXmlForUpdate method
Writes the EWS update operations corresponding to the changes that occurred in the bag to XML.
The writer to write the updates to.
Implementation
void WriteToXmlForUpdate(EwsServiceXmlWriter writer) {
writer.WriteStartElement(
XmlNamespace.Types,
Owner!.GetChangeXmlElementName(),
);
Owner!.GetId()!.WriteToXmlElemenetName(writer);
writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Updates);
for (PropertyDefinition propertyDefinition in _addedProperties) {
_WriteSetUpdateToXml(writer, propertyDefinition);
}
for (PropertyDefinition propertyDefinition in _modifiedProperties) {
_WriteSetUpdateToXml(writer, propertyDefinition);
}
for (MapEntry<PropertyDefinition, Object?> property
in _deletedProperties.entries) {
WriteDeleteUpdateToXml(writer, property.key, property.value);
}
writer.WriteEndElement();
writer.WriteEndElement();
}