WriteElementsToXml method

  1. @override
void WriteElementsToXml(
  1. EwsServiceXmlWriter writer
)
override
Writes elements to XML. The writer.

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  writer.WriteElementValueWithNamespace(
      XmlNamespace.Types, XmlElementNames.Name, this.Name);
  writer.WriteElementValueWithNamespace(
      XmlNamespace.Types, XmlElementNames.ContentType, this.ContentType);
  writer.WriteElementValueWithNamespace(
      XmlNamespace.Types, XmlElementNames.ContentId, this.ContentId);
  writer.WriteElementValueWithNamespace(XmlNamespace.Types,
      XmlElementNames.ContentLocation, this.ContentLocation);
  if (writer.Service.RequestedServerVersion.index >
      ExchangeVersion.Exchange2007_SP1.index) {
    writer.WriteElementValueWithNamespace(
        XmlNamespace.Types, XmlElementNames.IsInline, this.IsInline);
  }
}