System.Configuration 命名空间
方法描述
System.Configuration 命名空间包含提供用于处理配置数据的编程模型的类型。
System.Configuration 命名空间的所有类
| 类名称 | 类描述 |
|---|---|
| ApplicationScopedSettingAttribute | 指定应用程序设置属性具有适用于应用程序所有用户的公共值。 此类不能被继承。 |
| ApplicationSettingsBase | 作为派生具体包装类以实现 Window 窗体应用程序中的应用程序设置功能的基类。 |
| ApplicationSettingsGroup | 表示配置文件内的一组相关应用程序设置节。 此类不能被继承。 |
| AppSettingsReader | 提供一种从配置文件中读取特定类型的值的方法。 |
| AppSettingsSection | 为 appSettings 配置节提供配置系统支持。 此类不能被继承。 |
| CallbackValidator | 提供对对象的动态验证。 |
| CallbackValidatorAttribute | 指定用于代码验证的 CallbackValidator 对象。 此类不能被继承。 |
| ClientSettingsSection | 表示配置文件中用户范围的应用程序设置组。 |
| CommaDelimitedStringCollection | 表示以逗号分隔的字符串元素的集合。 此类不能被继承。 |
| CommaDelimitedStringCollectionConverter | 将以逗号分隔的字符串值和 CommaDelimitedStringCollection 对象相互转换。 此类不能被继承。 |
| Configuration | 表示适用于特定计算机、应用程序或资源的配置文件。 此类不能被继承。 |
| ConfigurationCollectionAttribute | 以声明的方式指示 .NET Framework 创建配置元素集合的实例。 此类不能被继承。 |
| ConfigurationConverterBase | 配置转换器类型的基类。 |
| ConfigurationElement | 表示配置文件中的配置元素。 |
| ConfigurationElementCollection | 表示包含一个子元素集合的配置元素。 |
| ConfigurationElementProperty | 指定配置元素的属性。 此类不能被继承。 |
| ConfigurationErrorsException | 当前的值不是 EnableSessionState 值之一。 |
| ConfigurationException | 当发生配置系统错误时引发的异常。 |
| ConfigurationFileMap | 为计算机配置文件定义配置文件映射。 |
| ConfigurationLocation | 表示配置文件中的 location 元素。 |
| ConfigurationLocationCollection | 包含 ConfigurationLocationCollection 对象的集合。 |
| ConfigurationLockCollection | 包含锁定的配置对象的集合。 此类不能被继承。 |
| ConfigurationManager | 提供对客户端应用程序配置文件的访问。 此类不能被继承。 |
| ConfigurationPermission | 提供允许方法或类访问配置文件的权限结构。 |
| ConfigurationPermissionAttribute | 创建一个 ConfigurationPermission 对象,该对象授予或拒绝访问配置文件节的标记了的目标权限。 |
| ConfigurationProperty | 基础结构。表示配置元素的一个特性或子级。 此类不能被继承。 |
| ConfigurationPropertyAttribute | 以声明方式指示 .NET Framework,以实例化配置属性。 此类不能被继承。 |
| ConfigurationPropertyCollection | 表示配置元素属性的集合。 |
| ConfigurationSection | 表示配置文件中的节。 |
| ConfigurationSectionCollection | 表示配置文件中的相关节的集合。 |
| ConfigurationSectionGroup | 表示配置文件中的一组相关节。 |
| ConfigurationSectionGroupCollection | 表示 ConfigurationSectionGroup 对象的集合。 |
| ConfigurationSettings | 提供 1.0 和 1.1 版运行时对读取配置节和公共配置设置的支持。 |
| ConfigurationValidatorAttribute | 用作 System.Configuration 验证程序特性类型的基类。 |
| ConfigurationValidatorBase | 作为基类,用于派生验证类,以便验证对象的值。 |
| ConfigXmlDocument | 基础结构。包装相应的 XmlDocument 类型并带有报告文件名和行号所需的信息。 |
| ConnectionStringSettings | 表示连接字符串配置文件节中的单个命名连接字符串。 |
| ConnectionStringSettingsCollection | 包含 ConnectionStringSettings 对象的集合。 |
| ConnectionStringsSection | 对连接字符串配置文件节进行编程访问。 |
| ContextInformation | 封装与 ConfigurationElement 对象关联的上下文信息。 此类不能被继承。 |
| DefaultSection | 表示公开配置节的 XML 以进行读写访问的基本配置节处理程序。 |
| DefaultSettingValueAttribute | 指定应用程序设置属性的默认值。 |
| DefaultValidator | 提供对象验证。 此类不能被继承。 |
| DictionarySectionHandler | 提供配置节中的键/值对配置信息。 |
| DpapiProtectedConfigurationProvider | 提供一个使用 Windows 数据保护 API (DPAPI) 来加密和解密配置数据的 ProtectedConfigurationProvider。 |
| ElementInformation | 包含有关配置中的个别元素的元信息。 此类不能被继承。 |
| ExeConfigurationFileMap | 定义 .exe 应用程序的配置文件映射。 此类不能被继承。 |
| ExeContext | 管理当前应用程序的路径上下文。 此类不能被继承。 |
| GenericEnumConverter | 在字符串和枚举类型之间进行转换。 |
| IdnElement | 在 System.Uri 类中提供用于国际域名 (IDN) 处理的配置设置。 |
| IgnoreSection | 为不是由 System.Configuration 类型处理的配置节提供包装类型定义。 |
| IgnoreSectionHandler | 为不是由 System.Configuration 类型处理的配置节提供旧式节处理程序定义。 |
| InfiniteIntConverter | 在字符串和标准无限或整数值之间转换。 |
| InfiniteTimeSpanConverter | 在字符串和标准无限 TimeSpan 值之间转换。 |
| IntegerValidator | 对 Int32 值进行验证。 |
| IntegerValidatorAttribute | 以声明的方式指示 .NET Framework 对配置属性执行整数验证。 此类不能被继承。 |
| IriParsingElement | 在 System.Uri 类中提供用于国际化资源标识符 (IRI) 处理的配置设置。 |
| KeyValueConfigurationCollection | 包含 KeyValueConfigurationElement 对象的集合。 |
| KeyValueConfigurationElement | 表示包含键/值对的配置元素。 |
| LocalFileSettingsProvider | 为应用程序设置类提供持久性存储。 |
| LongValidator | 对 Int64 值进行验证。 |
| LongValidatorAttribute | 以声明的方式指示 .NET Framework 对配置属性执行长整型验证。 此类不能被继承。 |
| NameValueConfigurationCollection | 包含 NameValueConfigurationElement 对象的集合。 此类不能被继承。 |
| NameValueConfigurationElement | 包含 String 名称和 String 值的配置元素。 此类不能被继承。 |
| NameValueFileSectionHandler | 提供对配置文件的访问。 此类型支持 .NET Framework 配置基础结构,不应从代码直接使用。 |
| NameValueSectionHandler | 提供配置节中的名称/值对配置信息。 |
| NoSettingsVersionUpgradeAttribute | 指定设置提供程序应禁用检测到应用程序升级时调用的任何逻辑。 此类不能被继承。 |
| PositiveTimeSpanValidator | 对 TimeSpan 对象进行验证。 此类不能被继承。 |
| PositiveTimeSpanValidatorAttribute | 以声明的方式指示 .NET Framework 对配置属性执行时间验证。 此类不能被继承。 |
| PropertyInformation | 包含配置中的个别属性的元数据信息。 无法继承此类型。 |
| PropertyInformationCollection | 包含 PropertyInformation 对象的集合。 此类不能被继承。 |
| ProtectedConfiguration | 为当前应用程序的配置文件提供对受保护配置提供程序的访问。 |
| ProtectedConfigurationProvider | 为加密和解密受保护的配置数据而创建提供程序的基类。 |
| ProtectedConfigurationProviderCollection | 提供 ProtectedConfigurationProvider 对象的集合。 |
| ProtectedConfigurationSection | 提供对 configProtectedData 配置节的编程访问。 此类不能被继承。 |
| ProtectedProviderSettings | 表示一组为 |
| ProviderSettings | 表示与提供程序关联的配置元素。 |
| ProviderSettingsCollection | 表示 ProviderSettings 对象的集合。 |
| RegexStringValidator | 根据正则表达式提供的规则提供字符串验证。 |
| RegexStringValidatorAttribute | 以声明方式指示 .NET Framework 使用正则表达式在配置属性中执行字符串验证。 此类不能被继承。 |
| RsaProtectedConfigurationProvider | 提供使用 RSA 加密对配置数据进行加密和解密的 ProtectedConfigurationProvider 实例。 |
| SchemeSettingElement | 表示 SchemeSettingElementCollection 类中的一个元素。 |
| SchemeSettingElementCollection | 表示 SchemeSettingElement 对象的集合。 |
| SectionInformation | 包含有关配置层次结构中单个节的元数据。 此类不能被继承。 |
| SettingAttribute | 表示用于将设置信息关联到设置属性的自定义设置特性。 |
| SettingChangingEventArgs | 为 SettingChanging 事件提供数据。 |
| SettingElement | 表示用于更新配置中的元素的简化配置元素。 此类不能被继承。 |
| SettingElementCollection | 包含 SettingElement 对象的集合。 此类不能被继承。 |
| SettingsAttributeDictionary | 表示用于描述配置对象以及 SettingsProperty 对象的键/值对的集合。 |
| SettingsBase | 提供了用于支持用户属性设置的基类。 |
| SettingsContext | 提供上下文信息,这些信息可由提供程序在保持设置时可使用。 |
| SettingsDescriptionAttribute | 提供描述单个配置属性的字符串。 此类不能被继承。 |
| SettingsGroupDescriptionAttribute | 提供描述应用程序设置属性组的字符串。 此类不能被继承。 |
| SettingsGroupNameAttribute | 为应用程序设置属性组指定名称。 此类不能被继承。 |
| SettingsLoadedEventArgs | 为 SettingsLoaded 事件提供数据。 |
| SettingsManageabilityAttribute | 为应用程序属性指定特殊服务。 此类不能被继承。 |
| SettingsProperty | 在内部作为类使用,表示有关个别配置属性的元数据。 |
| SettingsPropertyCollection | 包含 SettingsProperty 对象的集合。 |
| SettingsPropertyIsReadOnlyException | 提供只读 SettingsProperty 对象的异常。 |
| SettingsPropertyNotFoundException | 提供未找到的 SettingsProperty 对象的异常。 |
| SettingsPropertyValue | 包含可由 SettingsBase 的实例加载和存储的设置属性的值。 |
| SettingsPropertyValueCollection | 包含设置属性值的集合,这些值将 SettingsProperty 对象映射到 SettingsPropertyValue 对象。 |
| SettingsPropertyWrongTypeException | 提供在对 SettingsProperty 对象使用无效类型时引发的异常。 |
| SettingsProvider | 在应用程序设置结构中作为派生自定义设置提供程序的基类。 |
| SettingsProviderAttribute | 指定用于存储当前应用程序设置类或属性的设置提供程序。 此类不能被继承。 |
| SettingsProviderCollection | 表示应用程序设置提供程序的集合。 |
| SettingsSerializeAsAttribute | 指定设置提供程序应使用的序列化机制。 此类不能被继承。 |
| SettingValueElement | 包含表示设置的序列化值的 XML。 此类不能被继承。 |
| SingleTagSectionHandler | 基础结构。处理 .config 文件中由单个 XML 标记所表示的各配置节。 |
| SpecialSettingAttribute | 指示应用程序设置属性具有特别意义。 此类不能被继承。 |
| StringValidator | 对字符串进行验证。 |
| StringValidatorAttribute | 以声明的方式指示 .NET Framework 对配置属性执行字符串验证。 此类不能被继承。 |
| SubclassTypeValidator | 验证一个对象是否是指定类型的派生类。 |
| SubclassTypeValidatorAttribute | 以声明方式指示 .NET Framework 对配置属性执行验证。 此类不能被继承。 |
| TimeSpanMinutesConverter | 转换以分钟表示的时间跨度。 |
| TimeSpanMinutesOrInfiniteConverter | 转换以分钟表示(或作为标准的无限时间跨度)的 TimeSpan。 |
| TimeSpanSecondsConverter | 转换以秒表示的时间跨度。 |
| TimeSpanSecondsOrInfiniteConverter | 转换以秒表示的 TimeSpan,或将其转换为标准的无限时间跨度。 |
| TimeSpanValidator | 对 TimeSpan 对象进行验证。 |
| TimeSpanValidatorAttribute | 以声明的方式指示 .NET Framework 对配置属性执行时间验证。 此类不能被继承。 |
| TypeNameConverter | 在类型和字符串值之间转换。 此类不能被继承。 |
| UriSection | 表示配置文件中的 Uri 节。 |
| UserScopedSettingAttribute | 指定应用程序设置组或属性对于应用程序的每个用户包含不同的值。 此类不能被继承。 |
| UserSettingsGroup | 表示配置文件内的一组相关用户设置节。 此类不能被继承。 |
| WhiteSpaceTrimStringConverter | 将字符串转换为它的规范化格式。 |
System.Configuration 命名空间的所有接口
| 接口名称 | 接口描述 |
|---|---|
| IApplicationSettingsProvider | 为基于客户端的应用程序的设置提供程序定义扩展功能。 |
| IConfigurationSectionHandler | 处理对特定的配置节的访问。 |
| IConfigurationSystem | 基础结构。提供标准配置方法。 |
| IPersistComponentSettings | 定义存储和检索应用程序设置的控件或类的标准功能。 |
| ISettingsProviderService | 提供用于定义备用应用程序设置提供程序的接口。 |
System.Configuration 命名空间的所有委托
| 委托名称 | 委托描述 |
|---|---|
| SettingChangingEventHandler | 表示将处理 SettingChanging 事件的方法。 |
| SettingsLoadedEventHandler | 表示将处理 SettingsLoaded 事件的方法。 |
| SettingsSavingEventHandler | 表示将处理 SettingsSaving 事件的方法。 |
| ValidatorCallback | 表示验证一个对象后要调用的方法。 |
System.Configuration 命名空间的所有枚举
| 枚举名称 | 枚举描述 |
|---|---|
| ConfigurationAllowDefinition | 指定配置文件层次结构中的位置,在其中可设置或重写 ConfigurationSection 对象中包含的属性。 |
| ConfigurationAllowExeDefinition | 指定配置文件层次结构中的位置,在其中可设置或重写 ConfigurationSection 对象中包含的属性。 |
| ConfigurationElementCollectionType | 指定 ConfigurationElementCollectionType 对象的类型。 |
| ConfigurationPropertyOptions | 指定要应用于属性的选项。 |
| ConfigurationSaveMode | 确定写出到配置文件的属性。 |
| ConfigurationUserLevel | 用于指定将由 Configuration 对象表示的配置文件。 |
| OverrideMode | 为子目录中的配置元素指定配置元素重写行为。 |
| PropertyValueOrigin | 指定配置层次结构中的级别,在此级别上产生配置属性值。 |
| SettingsManageability | 提供若干值,以指示应该对应用程序设置使用哪些服务。 |
| SettingsSerializeAs | 确定用于存储应用程序设置的序列化方案。 |
| SpecialSetting | 指定应用程序设置属性的特殊设置类别。 |