WriteAttributesToXml method

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

Implementation

@override
void WriteAttributesToXml(EwsServiceXmlWriter writer) {
  if (this.FolderName != null) {
    writer.WriteAttributeValue(
        XmlAttributeNames.Id, EnumToString.parse(this.FolderName)!.toLowerCase());

    if (this.Mailbox != null) {
      this.Mailbox!.WriteToXml(writer, XmlElementNames.Mailbox);
    }
  } else {
    super.WriteAttributesToXml(writer);
  }
}