WriteAdditionalPropertiesToXml static method

void WriteAdditionalPropertiesToXml(
  1. EwsServiceXmlWriter writer,
  2. Iterable<PropertyDefinitionBase> propertyDefinitions
)
Writes additonal properties to XML. The writer to write to. The property definitions to write.

Implementation

static void WriteAdditionalPropertiesToXml(EwsServiceXmlWriter writer,
    Iterable<PropertyDefinitionBase> propertyDefinitions) {
  writer.WriteStartElement(
      XmlNamespace.Types, XmlElementNames.AdditionalProperties);

  for (PropertyDefinitionBase propertyDefinition in propertyDefinitions) {
    propertyDefinition.WriteToXml(writer);
  }

  writer.WriteEndElement();
}