SerializeElement Method

Summary
Writes the contents of this configuration element to the configuration file when implemented in a derived class.
Syntax
C#
C++/CLI
protected override bool SerializeElement( 
   XmlWriter writer, 
   bool serializeCollectionKey 
) 
protected: 
bool SerializeElement(  
   XmlWriter^ writer, 
   bool serializeCollectionKey 
) override  

Parameters

writer
The System.Xml.XmlWriter that writes to the configuration file.

serializeCollectionKey
true to serialize only the collection key properties; otherwise, false.

Return Value

true if any data was actually serialized; otherwise, false.

Exceptions

ExceptionDescription
System.Configuration.ConfigurationErrorsException The current attribute is locked at a higher configuration level.
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Logging Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.