WritePropertyValueToXml method
void
WritePropertyValueToXml(
- EwsServiceXmlWriter writer,
- PropertyBag propertyBag,
- bool isUpdateOperation
override
Implementation
@override
void WritePropertyValueToXml(EwsServiceXmlWriter writer,
PropertyBag propertyBag, bool isUpdateOperation) {
Object? value = propertyBag[this];
if (value != null) {
writer.WriteStartElement(XmlNamespace.Types, this.XmlElementName);
DateTime convertedDateTime = _GetConvertedDateTime(
writer.Service, propertyBag, isUpdateOperation, value);
writer.WriteValue(
EwsUtilities.DateTimeToXSDateTime(convertedDateTime), this.Name);
writer.WriteEndElement();
}
}