ConfigurationAllowExeDefinition ConfigurationAllowExeDefinition ConfigurationAllowExeDefinition ConfigurationAllowExeDefinition Enum

定义

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

public enum class ConfigurationAllowExeDefinition
public enum ConfigurationAllowExeDefinition
type ConfigurationAllowExeDefinition = 
Public Enum ConfigurationAllowExeDefinition
继承
ConfigurationAllowExeDefinitionConfigurationAllowExeDefinitionConfigurationAllowExeDefinitionConfigurationAllowExeDefinition

字段

MachineOnly MachineOnly MachineOnly MachineOnly 0

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

MachineToApplication MachineToApplication MachineToApplication MachineToApplication 100

可在 Machine.config 文件或客户端应用程序目录中的 Exe.config 文件中定义 ConfigurationSectionThe ConfigurationSection can be defined either in the Machine.config file or in the Exe.config file in the client application directory. 这是默认值。This is the default value.

MachineToLocalUser MachineToLocalUser MachineToLocalUser MachineToLocalUser 300

可在 Machine.config 文件、客户端应用程序目录中的 Exe.config 文件、漫游用户目录中的 User.config 文件或本地用户目录中的 User.config 文件中定义 ConfigurationSectionThe ConfigurationSection can be defined in the Machine.config file, in the Exe.config file in the client application directory, in the User.config file in the roaming user directory, or in the User.config file in the local user directory.

MachineToRoamingUser MachineToRoamingUser MachineToRoamingUser MachineToRoamingUser 200

可在 Machine.config 文件、客户端应用程序目录中的 Exe.config 文件或漫游用户目录中的 User.config 文件中定义 ConfigurationSectionThe ConfigurationSection can be defined in the Machine.config file, in the Exe.config file in the client application directory, or in the User.config file in the roaming user directory.

注解

在创建ConfigurationSection类的新实例时, 可以选择使用此枚举中的值。The values in this enumeration are optionally used when creating a new instance of the ConfigurationSection class. 请注意, 此枚举仅适用于客户端应用程序。Note this enumeration applies to client applications only.

适用于