WriteElementsToXml method

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

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  if (this.DayOfTheWeek != null) {
    writer.WriteElementValueWithNamespace(
        XmlNamespace.Types, XmlElementNames.DaysOfWeek, this.DayOfTheWeek);
  }

  if (this._dayOfTheWeekIndex != null) {
    writer.WriteElementValueWithNamespace(XmlNamespace.Types,
        XmlElementNames.DayOfWeekIndex, this.DayOfTheWeekIndex);
  }

  if (this.Month != null) {
    writer.WriteElementValueWithNamespace(
        XmlNamespace.Types, XmlElementNames.Month, this.Month);
  }
}