WriteElementsToXml method
Writes the elements to XML.
The writer.
Implementation
@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
writer.WriteStartElement(
XmlNamespace.Messages, XmlElementNames.ParentItemId);
writer.WriteAttributeValue(XmlAttributeNames.Id, this.ParentItemId);
writer.WriteEndElement();
writer.WriteStartElement(
XmlNamespace.Messages, XmlElementNames.Attachments);
for (Attachment? attachment in this.Attachments) {
attachment!.WriteToXml(writer, attachment.GetXmlElementName());
}
writer.WriteEndElement();
}