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 (AbstractItemIdWrapper itemIdWrapper in this.itemIds) {
      itemIdWrapper.WriteToXml(writer);
    }

    writer.WriteEndElement();
  }
}