SectionInformation.OverrideModeDefault Property

Gets or sets a value that specifies the default override behavior of a configuration section by child configuration files.

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

public OverrideMode OverrideModeDefault { get; set; }
/** @property */
public OverrideMode get_OverrideModeDefault ()

/** @property */
public void set_OverrideModeDefault (OverrideMode value)

public function get OverrideModeDefault () : OverrideMode

public function set OverrideModeDefault (value : OverrideMode)

Not applicable.

Property Value

One of the OverrideMode enumeration values.

Exception typeCondition

ConfigurationErrorsException

The override behavior is specified in a parent configuration section.

The OverrideModeDefault property of a configuration section can only be set to the Allow or Deny value of the OverrideMode enumeration. Setting the OverrideModeDefault property to Inherit is equivalent to setting the value to Allow.

The OverrideModeDefault property is introduced in the . For more information, see The .NET Framework 3.5 Architecture.

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

Community Additions

ADD
Show: