This documentation is archived and is not being maintained.

ConfigurationSection.SerializeSection Method

Note: This method is new in the .NET Framework version 2.0.

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

Parameters

parentElement

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

name

The name of the section to create.

saveMode

The ConfigurationSaveMode 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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: