WriteAttributesToXml method

  1. @override
void WriteAttributesToXml(
  1. EwsServiceXmlWriter writer
)
override
Writes the attributes to XML. The writer.

Implementation

@override
void WriteAttributesToXml(EwsServiceXmlWriter writer) {
  // The Name attribute is only supported in Exchange 2010 and above.
  if (writer.Service.RequestedServerVersion !=
      ExchangeVersion.Exchange2007_SP1) {
    writer.WriteAttributeValue(XmlAttributeNames.Name, this._name);
  }

  writer.WriteAttributeValue(XmlAttributeNames.Id, this._id);
}