Element Collection. Serialize Element(XmlWriter, Boolean) Method
Writes the configuration data to an XML element in the configuration file when overridden in a derived class.
protected public: override bool SerializeElement(System::Xml::XmlWriter ^ writer, bool serializeCollectionKey);
protected internal override bool SerializeElement (System.Xml.XmlWriter writer, bool serializeCollectionKey);
override this.SerializeElement : System.Xml.XmlWriter * bool -> bool
Protected Friend Overrides Function SerializeElement (writer As XmlWriter, serializeCollectionKey As Boolean) As Boolean
Output stream that writes XML to the configuration file.
true to serialize the collection key; otherwise,
true if the ConfigurationElementCollection was written to the configuration file successfully.
One of the elements in the collection was added or replaced and starts with the reserved prefix "config" or "lock".
The SerializeElement method writes the contents of the configuration elements contained in the collection and any nested elements they contain to the configuration file. Override SerializeElement to provide a custom write procedure out of the collection contents and nested elements.