.NET Framework Class Library
ConfigurationSectionSerializeSection Method

This API 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)
Syntax
Protected Friend Overridable Function SerializeSection ( _
	parentElement As [%$TOPIC/ms224439_en-us_VS_110_2_0_0_0_0%], _
	name As [%$TOPIC/ms224439_en-us_VS_110_2_0_0_0_1%], _
	saveMode As [%$TOPIC/ms224439_en-us_VS_110_2_0_0_0_2%] _
) As [%$TOPIC/ms224439_en-us_VS_110_2_0_0_0_3%]
protected internal virtual [%$TOPIC/ms224439_en-us_VS_110_2_0_1_0_0%] SerializeSection(
	[%$TOPIC/ms224439_en-us_VS_110_2_0_1_0_1%] parentElement,
	[%$TOPIC/ms224439_en-us_VS_110_2_0_1_0_2%] name,
	[%$TOPIC/ms224439_en-us_VS_110_2_0_1_0_3%] saveMode
)
protected public:
virtual [%$TOPIC/ms224439_en-us_VS_110_2_0_2_0_0%]^ SerializeSection(
	[%$TOPIC/ms224439_en-us_VS_110_2_0_2_0_1%]^ parentElement, 
	[%$TOPIC/ms224439_en-us_VS_110_2_0_2_0_2%]^ name, 
	[%$TOPIC/ms224439_en-us_VS_110_2_0_2_0_3%] saveMode
)
abstract SerializeSection : 
        parentElement:[%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_0%] * 
        name:[%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_1%] * 
        saveMode:[%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_2%] -> [%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_3%]  
override SerializeSection : 
        parentElement:[%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_4%] * 
        name:[%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_5%] * 
        saveMode:[%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_6%] -> [%$TOPIC/ms224439_en-us_VS_110_2_0_3_0_7%]

Parameters

parentElement
Type: System.ConfigurationConfigurationElement

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

name
Type: SystemString

The name of the section to create.

saveMode
Type: System.ConfigurationConfigurationSaveMode

The ConfigurationSaveMode instance to use when writing to a string.

Return Value

Type: SystemString
An XML string containing an unmerged view of the ConfigurationSection object.
Remarks

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

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.