WriteElementsToXml method

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

Implementation

@override
void WriteElementsToXml(EwsServiceXmlWriter writer) {
  writer.WriteStartElement(
      XmlNamespace.Types, this.InnerCollectionXmlElementName);
  for (FolderPermission folderPermission in this) {
    folderPermission.WriteToXmlWithElementNameAndCalendar(
        writer,
        this.GetCollectionItemXmlElementName(folderPermission),
        this._isCalendarFolder);
  }
  writer.WriteEndElement(); // this.InnerCollectionXmlElementName
}