WriteElementsToXml method
Writes elements to XML.
The writer.
Implementation
@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
this.PropertyDefinition!.WriteToXml(writer);
if (MapiTypeConverter.IsArrayType(this.PropertyDefinition!.MapiType)) {
List array = this.Value as List;
writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Values);
for (int index = 0; index < array.length; index++) {
writer.WriteElementValueWithNamespace(
XmlNamespace.Types,
XmlElementNames.Value,
MapiTypeConverter.ConvertToString(
this.PropertyDefinition!.MapiType, array[index]));
}
writer.WriteEndElement();
} else {
writer.WriteElementValueWithNamespace(
XmlNamespace.Types,
XmlElementNames.Value,
MapiTypeConverter.ConvertToString(
this.PropertyDefinition!.MapiType, this.Value));
}
}