WriteToXml method
Writes to XML.
The writer.
The XML namespace.
Name of the XML element.
Implementation
void WriteToXml(
EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String xmlElementName,
) {
writer.WriteStartElement(xmlNamespace, xmlElementName);
// Write the UserConfigurationName element
WriteUserConfigurationNameToXml(
writer,
XmlNamespace.Types,
_name,
_parentFolderId,
);
// Write the Dictionary element
if (_IsPropertyUpdated(UserConfigurationProperties.Dictionary)) {
_dictionary.WriteToXml(writer, XmlElementNames.Dictionary);
}
// Write the XmlData element
if (_IsPropertyUpdated(UserConfigurationProperties.XmlData)) {
_WriteXmlDataToXml(writer);
}
// Write the BinaryData element
if (_IsPropertyUpdated(UserConfigurationProperties.BinaryData)) {
_WriteBinaryDataToXml(writer);
}
writer.WriteEndElement();
}