This documentation is archived and is not being maintained.

ConfigurationSection.SerializeSection Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Creates an XML string containing an unmerged view of the ConfigurationSection object as a single section to write to a file.

Namespace: System.Configuration
Assembly: System.Configuration (in system.configuration.dll)

protected internal virtual string SerializeSection (
	ConfigurationElement parentElement,
	string name,
	ConfigurationSaveMode saveMode
protected String SerializeSection (
	ConfigurationElement parentElement, 
	String name, 
	ConfigurationSaveMode saveMode
protected internal function SerializeSection (
	parentElement : ConfigurationElement, 
	name : String, 
	saveMode : ConfigurationSaveMode
) : String
Not applicable.



The ConfigurationElement instance to use as the parent when performing the un-merge.


The name of the section to create.


The ConfigurationSaveMode instance to use when writing to a string.

Return Value

An XML string containing an unmerged view of the ConfigurationSection object.

Serialization refers to the transformation of real-time data, contained in an object, to XML format and its storage to a configuration file.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0