ExeConfigurationFileMap 类
定义
定义 .exe 应用程序的配置文件映射。Defines the configuration file mapping for an .exe application. 此类不能被继承。This class cannot be inherited.
public ref class ExeConfigurationFileMap sealed : System::Configuration::ConfigurationFileMap
public sealed class ExeConfigurationFileMap : System.Configuration.ConfigurationFileMap
type ExeConfigurationFileMap = class
inherit ConfigurationFileMap
Public NotInheritable Class ExeConfigurationFileMap
Inherits ConfigurationFileMap
- 继承
示例
有关演示如何使用此类的示例,请参见 ConfigurationManager.OpenMappedExeConfiguration 方法。For an example that shows how to use this class, see the ConfigurationManager.OpenMappedExeConfiguration method.
注解
ExeConfigurationFileMap类提供了一种方法,用于为 .exe 应用程序定义自定义配置文件层次结构。The ExeConfigurationFileMap class provides a means to define a custom configuration file hierarchy for .exe applications. ExeConfigurationFileMap类可以指定与配置文件相关的单个路径或多个路径。The ExeConfigurationFileMap class can specify a single path or multiple paths related to configuration files.
构造函数
ExeConfigurationFileMap() |
初始化 ExeConfigurationFileMap 类的新实例。Initializes a new instance of the ExeConfigurationFileMap class. |
ExeConfigurationFileMap(String) |
使用指定的计算机配置文件名初始化 ExeConfigurationFileMap 类的新实例。Initializes a new instance of the ExeConfigurationFileMap class by using the specified machine configuration file name. |
属性
ExeConfigFilename |
获取或设置配置文件的名称。Gets or sets the name of the configuration file. |
LocalUserConfigFilename |
获取或设置配置文件的名称(针对本地用户)。Gets or sets the name of the configuration file for the local user. |
MachineConfigFilename |
获取或设置计算机配置文件的名称。Gets or sets the name of the machine configuration file name. (继承自 ConfigurationFileMap) |
RoamingUserConfigFilename |
获取或设置配置文件的名称(针对漫游用户)。Gets or sets the name of the configuration file for the roaming user. |
方法
Clone() |
创建现有 ExeConfigurationFileMap 对象的副本。Creates a copy of the existing ExeConfigurationFileMap object. |
Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |