WriteElementsToXml method

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

Implementation

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

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

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