OverrideMode 枚举

定义

为子目录中的配置元素指定配置元素重写行为。Specifies the override behavior of a configuration element for configuration elements in child directories.

public enum class OverrideMode
public enum OverrideMode
type OverrideMode = 
Public Enum OverrideMode
继承
OverrideMode

字段

Allow 1

元素或组的配置设置可由子目录中的配置设置重写。The configuration setting of the element or group can be overridden by configuration settings that are in child directories.

Deny 2

元素或组的配置设置不能由子目录中的配置设置重写。The configuration setting of the element or group cannot be overridden by configuration settings that are in child directories.

Inherit 0

如果得到当前配置元素或组的父元素的显式允许,则元素或组的配置设置将由子目录中的配置设置重写。The configuration setting of the element or group will be overridden by configuration settings that are in child directories if explicitly allowed by a parent element of the current configuration element or group. 可通过使用 OverrideMode 特性来指定重写权限。Permission to override is specified by using the OverrideMode attribute.

注解

使用枚举值OverrideMode设置SectionInformation类的属性。 OverrideModeUse the OverrideMode enumeration values to set the OverrideMode property of the SectionInformation class. 设置此属性是为了以编程方式指定配置元素或组的替代行为。You set this property in order to programmatically specify override behavior of a configuration element or group. 若要以声明方式为元素内的所有配置元素设置重写行为allowOverride , 请使用特性。To declaratively set the override behavior for all configuration elements inside a element, use the allowOverride attribute. 属性使您可以更精细地控制location元素内的元素。 OverrideModeThe OverrideMode property gives you more granular control over the elements inside a location element.

适用于

另请参阅