ConfigurationElementCollection.SerializeElement Method (XmlWriter, Boolean)
Writes the configuration data to an XML element in the configuration file when overridden in a derived class.
Assembly: System.Configuration (in System.Configuration.dll)
protected internal override bool SerializeElement( XmlWriter writer, bool serializeCollectionKey )
Output stream that writes XML to the configuration file.
true to serialize the collection key; otherwise, false.
One of the elements in the collection was added or replaced and starts with the reserved prefix "config" or "lock".
Themethod writes the contents of the configuration elements contained in the collection and any nested elements they contain to the configuration file. Override to provide a custom write procedure out of the collection contents and nested elements.
Available since 2.0