.NET Framework Class Library
ConfigurationElementUnmerge Method

Modifies the ConfigurationElement object to remove all values that should not be saved.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)
Syntax
Protected Friend Overridable Sub Unmerge ( _
	sourceElement As [%$TOPIC/ms224427_en-us_VS_110_2_0_0_0_0%], _
	parentElement As [%$TOPIC/ms224427_en-us_VS_110_2_0_0_0_1%], _
	saveMode As [%$TOPIC/ms224427_en-us_VS_110_2_0_0_0_2%] _
)
protected internal virtual void Unmerge(
	[%$TOPIC/ms224427_en-us_VS_110_2_0_1_0_0%] sourceElement,
	[%$TOPIC/ms224427_en-us_VS_110_2_0_1_0_1%] parentElement,
	[%$TOPIC/ms224427_en-us_VS_110_2_0_1_0_2%] saveMode
)
protected public:
virtual void Unmerge(
	[%$TOPIC/ms224427_en-us_VS_110_2_0_2_0_0%]^ sourceElement, 
	[%$TOPIC/ms224427_en-us_VS_110_2_0_2_0_1%]^ parentElement, 
	[%$TOPIC/ms224427_en-us_VS_110_2_0_2_0_2%] saveMode
)
abstract Unmerge : 
        sourceElement:[%$TOPIC/ms224427_en-us_VS_110_2_0_3_0_0%] * 
        parentElement:[%$TOPIC/ms224427_en-us_VS_110_2_0_3_0_1%] * 
        saveMode:[%$TOPIC/ms224427_en-us_VS_110_2_0_3_0_2%] -> unit  
override Unmerge : 
        sourceElement:[%$TOPIC/ms224427_en-us_VS_110_2_0_3_0_3%] * 
        parentElement:[%$TOPIC/ms224427_en-us_VS_110_2_0_3_0_4%] * 
        saveMode:[%$TOPIC/ms224427_en-us_VS_110_2_0_3_0_5%] -> unit

Parameters

sourceElement
Type: System.ConfigurationConfigurationElement

A ConfigurationElement at the current level containing a merged view of the properties.

parentElement
Type: System.ConfigurationConfigurationElement

The parent ConfigurationElement, or if this is the top level.

saveMode
Type: System.ConfigurationConfigurationSaveMode

A ConfigurationSaveMode that determines which property values to include.

Remarks

This method is called before the ConfigurationElement object is saved by the Configuration object in order to remove all unneeded properties.

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.