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.EmailAddress, this.Address);
  writer.WriteElementValueWithNamespace(
      XmlNamespace.Types, XmlElementNames.RoutingType, this.RoutingType);
  writer.WriteElementValueWithNamespace(
      XmlNamespace.Types, XmlElementNames.MailboxType, this.MailboxType);

  if (this.Id != null) {
    this.Id!.WriteToXml(writer, XmlElementNames.ItemId);
  }
}