WriteDeleteUpdateToXml method

bool WriteDeleteUpdateToXml(
  1. EwsServiceXmlWriter writer,
  2. ServiceObject? ewsObject
)
override
Writes the deletion update to XML. The writer. The ews object.

Implementation

bool WriteDeleteUpdateToXml(
    EwsServiceXmlWriter writer, ServiceObject? ewsObject) {
  for (ExtendedProperty extendedProperty in this.Items) {
    writer.WriteStartElement(
        XmlNamespace.Types, ewsObject!.GetDeleteFieldXmlElementName());
    extendedProperty.PropertyDefinition!.WriteToXml(writer);
    writer.WriteEndElement();
  }

  return true;
}