OverrideMode OverrideMode OverrideMode OverrideMode Enum

定义

为子目录中的配置元素指定配置元素重写行为。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
继承

字段

Allow Allow Allow Allow 1

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

Deny Deny Deny Deny 2

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

Inherit Inherit Inherit 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枚举值来设置OverrideMode属性的SectionInformation类。Use 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. OverrideMode属性可让您更精细地控制内的元素location元素。The OverrideMode property gives you more granular control over the elements inside a location element.

适用于

另请参阅