ConfigurationSettings 类
定义
提供 1.0 和 1.1 版运行时对读取配置节和公共配置设置的支持。Provides runtime versions 1.0 and 1.1 support for reading configuration sections and common configuration settings.
public ref class ConfigurationSettings sealed
public sealed class ConfigurationSettings
type ConfigurationSettings = class
Public NotInheritable Class ConfigurationSettings
- 继承
-
ConfigurationSettings
注解
使用类型的静态方法和属性 ConfigurationSettings 在运行时读取版本1.0 和1.1 应用程序的配置信息。Use the static methods and properties of the ConfigurationSettings type to read configuration information at run time for version 1.0 and 1.1 applications.
备注
ConfigurationSettings 类仅提供向后兼容性。The ConfigurationSettings class provides backward compatibility only. 对于新应用程序,请改用 ConfigurationManager 类或 WebConfigurationManager 类。For new applications, use the ConfigurationManager class or WebConfigurationManager class instead. 若要使用这两个类,请在项目中添加对 System.Configuration 命名空间的引用。To use these two classes, add a reference in your project to the System.Configuration namespace.
属性
| AppSettings |
已过时。
已过时。
获取配置文件应用程序设置的只读集合。Gets a read-only collection of the application settings from the configuration file. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetConfig(String) |
已过时。
返回传递的配置节名称和路径的 ConfigurationSection 对象。Returns the ConfigurationSection object for the passed configuration section name and path. |
| 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) |