ConfigurationAllowDefinition 枚举

定义

指定配置文件层次结构中的位置,在其中可设置或替代 ConfigurationSection 对象中包含的属性。Specifies the locations within the configuration-file hierarchy that can set or override the properties contained within a ConfigurationSection object.

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

字段

Everywhere 300

ConfigurationSection 可以在任何位置定义。The ConfigurationSection can be defined anywhere.

MachineOnly 0

ConfigurationSection 只能在 Machine.config 文件中定义。The ConfigurationSection can be defined only in the Machine.config file.

MachineToApplication 200

ConfigurationSection 可以在 Machine.config 文件中定义,或在计算机级别的 Web.config 文件(与 Machine.config 处于相同的目录)中定义,或在顶级应用程序 Web.config 文件(在虚拟根目录中)中定义,但不能在虚拟根目录的子目录中定义。The ConfigurationSection can be defined in either the Machine.config file, the machine-level Web.config file found in the same directory as Machine.config, or the top-level application Web.config file found in the virtual-directory root, but not in subdirectories of a virtual root.

MachineToWebRoot 100

ConfigurationSection 可以在 Machine.config 文件中定义,也可以在 计算机级别的 Web.config 文件(与 Machine.config 处于相同的目录)中定义,但不能在应用程序 Web.config 文件中定义。The ConfigurationSection can be defined in either the Machine.config file or the machine-level Web.config file found in the same directory as Machine.config, but not in application Web.config files.

注解

在创建ConfigurationSection类的新实例时, 可以选择使用此枚举中的值。The values in this enumeration are optionally used when creating a new instance of the ConfigurationSection class.

适用于