←Select platform

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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Logging Assembly
Click or drag to resize