LEADTOOLS (Leadtools.Logging assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
SerializeElement Method
See Also 
Leadtools.Logging.Configuration Namespace > ChannelElement Class : SerializeElement Method



writer
The System.Xml.XmlWriter that writes to the configuration file.
serializeCollectionKey
true to serialize only the collection key properties; otherwise, false.
writer
The System.Xml.XmlWriter that writes to the configuration file.
serializeCollectionKey
true to serialize only the collection key properties; otherwise, false.
Writes the contents of this configuration element to the configuration file when implemented in a derived class.

Syntax

Visual Basic (Declaration) 
Overrides Protected Function SerializeElement( _
   ByVal writer As XmlWriter, _
   ByVal serializeCollectionKey As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ChannelElement
Dim writer As XmlWriter
Dim serializeCollectionKey As Boolean
Dim value As Boolean
 
value = instance.SerializeElement(writer, serializeCollectionKey)
C# 
protected override bool SerializeElement( 
   XmlWriter writer,
   bool serializeCollectionKey
)
C++/CLI 
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: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Logging requires a Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features