SerializeElement Method

Summary
Writes the contents of this configuration element to the configuration file when implemented in a derived class.
Syntax
C#
VB
C++
protected override bool SerializeElement( 
   XmlWriter writer, 
   bool serializeCollectionKey 
) 
  
Protected Overrides Function SerializeElement( _ 
   ByVal writer As XmlWriter, _ 
   ByVal serializeCollectionKey As Boolean _ 
) As Boolean 
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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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