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.
Assembly: System.Configuration (in System.Configuration.dll)
Syntax
An XML string containing an unmerged view of the ConfigurationSection object.
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: SystemStringAn XML string containing an unmerged view of the ConfigurationSection object.
Platforms
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.