WriteToXml method

void WriteToXml(
  1. EwsServiceXmlWriter writer,
  2. XmlNamespace ewsNamesapce,
  3. String xmlElementName
)
Writes to XML. The writer. The ews namesapce. Name of the XML element.

Implementation

void WriteToXml(EwsServiceXmlWriter writer, XmlNamespace ewsNamesapce,
    String xmlElementName) {
  if (this.Count > 0) {
    writer.WriteStartElement(ewsNamesapce, xmlElementName);

    for (AbstractFolderIdWrapper folderIdWrapper in this._ids) {
      folderIdWrapper.WriteToXml(writer);
    }

    writer.WriteEndElement();
  }
}