System.Configuration 命名空间
类
ApplicationScopedSettingAttribute |
指定应用程序设置属性具有适用于应用程序所有用户的公共值。Specifies that an application settings property has a common value for all users of an application. 此类不能被继承。This class cannot be inherited. |
ApplicationSettingsBase |
作为派生具体包装类以实现 Window 窗体应用程序中的应用程序设置功能的基类。Acts as a base class for deriving concrete wrapper classes to implement the application settings feature in Window Forms applications. |
ApplicationSettingsGroup |
表示配置文件内的一组相关应用程序设置节。Represents a grouping of related application settings sections within a configuration file. 此类不能被继承。This class cannot be inherited. |
AppSettingsReader |
提供一种从配置文件中读取特定类型的值的方法。Provides a method for reading values of a particular type from the configuration. |
AppSettingsSection |
为 |
CallbackValidator |
提供对对象的动态验证。Provides dynamic validation of an object. |
CallbackValidatorAttribute |
指定用于代码验证的 CallbackValidator 对象。Specifies a CallbackValidator object to use for code validation. 此类不能被继承。This class cannot be inherited. |
ClientSettingsSection |
表示配置文件中用户范围的应用程序设置组。Represents a group of user-scoped application settings in a configuration file. |
CommaDelimitedStringCollection |
表示用逗号分隔的字符串元素的集合。Represents a collection of string elements separated by commas. 此类不能被继承。This class cannot be inherited. |
CommaDelimitedStringCollectionConverter |
将以逗号分隔的字符串值和 CommaDelimitedStringCollection 对象相互转换。Converts a comma-delimited string value to and from a CommaDelimitedStringCollection object. 此类不能被继承。This class cannot be inherited. |
Configuration |
表示适用于特定计算机、应用程序或资源的配置文件。Represents a configuration file that is applicable to a particular computer, application, or resource. 此类不能被继承。This class cannot be inherited. |
ConfigurationBuilder |
表示将由自定义配置生成器实现扩展的基类。Represents the base class to be extended by custom configuration builder implementations. |
ConfigurationBuilderCollection |
按名称维护 ConfigurationBuilder 对象的集合。Maintains a collection of ConfigurationBuilder objects by name. |
ConfigurationBuilderSettings |
表示一组配置元素,这些元素用于配置 |
ConfigurationBuildersSection |
提供对 |
ConfigurationCollectionAttribute |
以声明的方式指示 .NET Framework 创建配置元素集合的实例。Declaratively instructs the .NET Framework to create an instance of a configuration element collection. 此类不能被继承。This class cannot be inherited. |
ConfigurationConverterBase |
配置转换器类型的基类。The base class for the configuration converter types. |
ConfigurationElement |
表示配置文件中的配置元素。Represents a configuration element within a configuration file. |
ConfigurationElementCollection |
表示一个配置元素,该元素包含子元素的集合。Represents a configuration element containing a collection of child elements. |
ConfigurationElementProperty |
指定配置元素的属性。Specifies the property of a configuration element. 此类不能被继承。This class cannot be inherited. |
ConfigurationErrorsException |
发生配置错误时引发的异常。The exception that is thrown when a configuration error has occurred. |
ConfigurationException |
发生配置系统错误时引发的异常。The exception that is thrown when a configuration system error has occurred. |
ConfigurationFileMap |
为计算机配置文件定义配置文件映射。Defines the configuration file mapping for the machine configuration file. |
ConfigurationLocation |
表示配置文件中的 |
ConfigurationLocationCollection |
包含 ConfigurationLocationCollection 对象的集合。Contains a collection of ConfigurationLocationCollection objects. |
ConfigurationLockCollection |
包含锁定的配置对象的集合。Contains a collection of locked configuration objects. 此类不能被继承。This class cannot be inherited. |
ConfigurationManager |
提供对客户端应用程序配置文件的访问。Provides access to configuration files for client applications. 此类不能被继承。This class cannot be inherited. |
ConfigurationPermission |
提供允许方法或类访问配置文件的权限结构。Provides a permission structure that allows methods or classes to access configuration files. |
ConfigurationPermissionAttribute |
创建一个 ConfigurationPermission 对象,该对象授予或拒绝访问配置文件节的标记了的目标权限。Creates a ConfigurationPermission object that either grants or denies the marked target permission to access sections of configuration files. |
ConfigurationProperty |
表示配置元素的一个特性或子级。Represents an attribute or a child of a configuration element. 此类不能被继承。This class cannot be inherited. |
ConfigurationPropertyAttribute |
以声明方式指示 .NET Framework,以实例化配置属性。Declaratively instructs the .NET Framework to instantiate a configuration property. 此类不能被继承。This class cannot be inherited. |
ConfigurationPropertyCollection |
表示配置元素属性的集合。Represents a collection of configuration-element properties. |
ConfigurationSection |
表示配置文件中的节。Represents a section within a configuration file. |
ConfigurationSectionCollection |
表示配置文件中的相关节的集合。Represents a collection of related sections within a configuration file. |
ConfigurationSectionGroup |
表示配置文件中的一组相关节。Represents a group of related sections within a configuration file. |
ConfigurationSectionGroupCollection |
表示 ConfigurationSectionGroup 对象集合。Represents a collection of ConfigurationSectionGroup objects. |
ConfigurationSettings |
提供 1.0 和 1.1 版运行时对读取配置节和公共配置设置的支持。Provides runtime versions 1.0 and 1.1 support for reading configuration sections and common configuration settings. |
ConfigurationValidatorAttribute |
用作 System.Configuration 验证程序特性类型的基类。Serves as the base class for the System.Configuration validator attribute types. |
ConfigurationValidatorBase |
作为基类,用于派生验证类,以便验证对象的值。Acts as a base class for deriving a validation class so that a value of an object can be verified. |
ConfigXmlDocument |
包装相应的 XmlDocument 类型并带有报告文件名和行号所需的信息。Wraps the corresponding XmlDocument type and also carries the necessary information for reporting file-name and line numbers. |
ConnectionStringSettings |
表示连接字符串配置文件节中的单个命名连接字符串。Represents a single, named connection string in the connection strings configuration file section. |
ConnectionStringSettingsCollection |
包含 ConnectionStringSettings 对象的集合。Contains a collection of ConnectionStringSettings objects. |
ConnectionStringsSection |
对连接字符串配置文件节进行编程访问。Provides programmatic access to the connection strings configuration-file section. |
ContextInformation |
封装与 ConfigurationElement 对象关联的上下文信息。Encapsulates the context information that is associated with a ConfigurationElement object. 此类不能被继承。This class cannot be inherited. |
DefaultSection |
表示公开配置节的 XML 以进行读写访问的基本配置节处理程序。Represents a basic configuration-section handler that exposes the configuration section's XML for both read and write access. |
DefaultSettingValueAttribute |
指定应用程序设置属性的默认值。Specifies the default value for an application settings property. |
DefaultValidator |
提供对象验证。Provides validation of an object. 此类不能被继承。This class cannot be inherited. |
DictionarySectionHandler |
提供配置节中的键/值对配置信息。Provides key/value pair configuration information from a configuration section. |
DpapiProtectedConfigurationProvider |
提供一个使用 Windows 数据保护 API (DPAPI) 来加密和解密配置数据的 ProtectedConfigurationProvider。Provides a ProtectedConfigurationProvider object that uses the Windows data protection API (DPAPI) to encrypt and decrypt configuration data. |
ElementInformation |
包含有关配置中的个别元素的元信息。Contains meta-information about an individual element within the configuration. 此类不能被继承。This class cannot be inherited. |
ExeConfigurationFileMap |
定义 .exe 应用程序的配置文件映射。Defines the configuration file mapping for an .exe application. 此类不能被继承。This class cannot be inherited. |
ExeContext |
管理当前应用程序的路径上下文。Manages the path context for the current application. 此类不能被继承。This class cannot be inherited. |
GenericEnumConverter |
在字符串和枚举类型之间进行转换。Converts between a string and an enumeration type. |
IdnElement |
在 Uri 类中提供用于国际域名 (IDN) 处理的配置设置。Provides the configuration setting for International Domain Name (IDN) processing in the Uri class. |
IgnoreSection |
为不由 System.Configuration 类型处理的配置节提供包装器类型定义。Provides a wrapper type definition for configuration sections that are not handled by the System.Configuration types. |
IgnoreSectionHandler |
为不是由 System.Configuration 类型处理的配置节提供旧式节处理程序定义。Provides a legacy section-handler definition for configuration sections that are not handled by the System.Configuration types. |
InfiniteIntConverter |
在字符串和标准无限或整数值之间转换。Converts between a string and the standard infinite or integer value. |
InfiniteTimeSpanConverter |
在字符串和标准无限 TimeSpan 值之间转换。Converts between a string and the standard infinite TimeSpan value. |
IntegerValidator | |
IntegerValidatorAttribute |
以声明的方式指示 .NET Framework 对配置属性执行整数验证。Declaratively instructs the .NET Framework to perform integer validation on a configuration property. 此类不能被继承。This class cannot be inherited. |
IriParsingElement |
在 Uri 类中提供用于国际化资源标识符 (IRI) 处理的配置设置。Provides the configuration setting for International Resource Identifier (IRI) processing in the Uri class. |
KeyValueConfigurationCollection |
包含 KeyValueConfigurationElement 对象的集合。Contains a collection of KeyValueConfigurationElement objects. |
KeyValueConfigurationElement |
表示包含键/值对的配置元素。Represents a configuration element that contains a key/value pair. |
LocalFileSettingsProvider |
为应用程序设置类提供持久性存储。Provides persistence for application settings classes. |
LongValidator | |
LongValidatorAttribute |
以声明的方式指示 .NET Framework 对配置属性执行长整型验证。Declaratively instructs the .NET Framework to perform long-integer validation on a configuration property. 此类不能被继承。This class cannot be inherited. |
NameValueConfigurationCollection |
包含 NameValueConfigurationElement 对象的集合。Contains a collection of NameValueConfigurationElement objects. 此类不能被继承。This class cannot be inherited. |
NameValueConfigurationElement |
包含 String 名称和 String 值的配置元素。A configuration element that contains a String name and String value. 此类不能被继承。This class cannot be inherited. |
NameValueFileSectionHandler |
提供对配置文件的访问。Provides access to a configuration file. 此类型支持 .NET Framework 配置基础结构,不应从代码直接使用。This type supports the .NET Framework configuration infrastructure and is not intended to be used directly from your code. |
NameValueSectionHandler |
提供配置节中的名称/值对配置信息。Provides name/value-pair configuration information from a configuration section. |
NoSettingsVersionUpgradeAttribute |
指定设置提供程序应禁用检测到应用程序升级时调用的任何逻辑。Specifies that a settings provider should disable any logic that gets invoked when an application upgrade is detected. 此类不能被继承。This class cannot be inherited. |
PositiveTimeSpanValidator |
对 TimeSpan 对象进行验证。Provides validation of a TimeSpan object. 此类不能被继承。This class cannot be inherited. |
PositiveTimeSpanValidatorAttribute |
以声明的方式指示 .NET Framework 对配置属性执行时间验证。Declaratively instructs the .NET Framework to perform time validation on a configuration property. 此类不能被继承。This class cannot be inherited. |
PropertyInformation |
包含配置中的个别属性的元数据信息。Contains meta-information on an individual property within the configuration. 无法继承此类型。This type cannot be inherited. |
PropertyInformationCollection |
包含 PropertyInformation 对象的集合。Contains a collection of PropertyInformation objects. 此类不能被继承。This class cannot be inherited. |
ProtectedConfiguration |
为当前应用程序的配置文件提供对受保护配置提供程序的访问。Provides access to the protected-configuration providers for the current application's configuration file. |
ProtectedConfigurationProvider |
为加密和解密受保护的配置数据而创建提供程序的基类。Is the base class to create providers for encrypting and decrypting protected-configuration data. |
ProtectedConfigurationProviderCollection |
提供 ProtectedConfigurationProvider 对象的集合。Provides a collection of ProtectedConfigurationProvider objects. |
ProtectedConfigurationSection |
提供对 |
ProtectedProviderSettings |
表示一组配置元素,这些元素用于配置 |
ProviderSettings |
表示与提供程序关联的配置元素。Represents the configuration elements associated with a provider. |
ProviderSettingsCollection |
表示 ProviderSettings 对象集合。Represents a collection of ProviderSettings objects. |
RegexStringValidator |
根据正则表达式提供的规则提供字符串验证。Provides validation of a string based on the rules provided by a regular expression. |
RegexStringValidatorAttribute |
以声明方式指示 .NET Framework 使用正则表达式在配置属性中执行字符串验证。Declaratively instructs the .NET Framework to perform string validation on a configuration property using a regular expression. 此类不能被继承。This class cannot be inherited. |
RsaProtectedConfigurationProvider |
提供使用 RSA 加密对配置数据进行加密和解密的 ProtectedConfigurationProvider 实例。Provides a ProtectedConfigurationProvider instance that uses RSA encryption to encrypt and decrypt configuration data. |
SchemeSettingElement |
表示 SchemeSettingElementCollection 类中的元素。Represents an element in a SchemeSettingElementCollection class. |
SchemeSettingElementCollection |
表示 SchemeSettingElement 对象集合。Represents a collection of SchemeSettingElement objects. |
SectionInformation |
包含有关配置层次结构中单个节的元数据。Contains metadata about an individual section within the configuration hierarchy. 此类不能被继承。This class cannot be inherited. |
SettingAttribute |
表示用于将设置信息关联到设置属性的自定义设置特性。Represents a custom settings attribute used to associate settings information with a settings property. |
SettingChangingEventArgs |
为 SettingChanging 事件提供数据。Provides data for the SettingChanging event. |
SettingElement |
表示用于更新配置中的元素的简化配置元素。Represents a simplified configuration element used for updating elements in the configuration. 此类不能被继承。This class cannot be inherited. |
SettingElementCollection |
包含 SettingElement 对象的集合。Contains a collection of SettingElement objects. 此类不能被继承。This class cannot be inherited. |
SettingsAttributeDictionary |
表示用于描述配置对象以及 SettingsProperty 对象的键/值对集合。Represents a collection of key/value pairs used to describe a configuration object as well as a SettingsProperty object. |
SettingsBase |
提供用于支持用户属性设置的基类。Provides the base class used to support user property settings. |
SettingsContext |
提供程序在保持设置时可使用的上下文信息。Provides contextual information that the provider can use when persisting settings. |
SettingsDescriptionAttribute |
提供描述单个配置属性的字符串。Provides a string that describes an individual configuration property. 此类不能被继承。This class cannot be inherited. |
SettingsGroupDescriptionAttribute |
提供描述应用程序设置属性组的字符串。Provides a string that describes an application settings property group. 此类不能被继承。This class cannot be inherited. |
SettingsGroupNameAttribute |
为应用程序设置属性组指定名称。Specifies a name for application settings property group. 此类不能被继承。This class cannot be inherited. |
SettingsLoadedEventArgs |
为 SettingsLoaded 事件提供数据。Provides data for the SettingsLoaded event. |
SettingsManageabilityAttribute |
为应用程序设置属性指定特殊服务。Specifies special services for application settings properties. 此类不能被继承。This class cannot be inherited. |
SettingsProperty |
在内部作为类使用,表示有关个别配置属性的元数据。Used internally as the class that represents metadata about an individual configuration property. |
SettingsPropertyCollection |
包含 SettingsProperty 对象的集合。Contains a collection of SettingsProperty objects. |
SettingsPropertyIsReadOnlyException |
提供只读 SettingsProperty 对象的异常。Provides an exception for read-only SettingsProperty objects. |
SettingsPropertyNotFoundException |
提供未找到的 SettingsProperty 对象的异常。Provides an exception for SettingsProperty objects that are not found. |
SettingsPropertyValue |
包含可由 SettingsBase 的实例加载和存储的设置属性的值。Contains the value of a settings property that can be loaded and stored by an instance of SettingsBase. |
SettingsPropertyValueCollection |
包含设置属性值的集合,这些值将 SettingsProperty 对象映射到 SettingsPropertyValue 对象。Contains a collection of settings property values that map SettingsProperty objects to SettingsPropertyValue objects. |
SettingsPropertyWrongTypeException |
提供对 SettingsProperty 对象使用无效类型时引发的异常。Provides an exception that is thrown when an invalid type is used with a SettingsProperty object. |
SettingsProvider |
在应用程序设置结构中作为派生自定义设置提供程序的基类。Acts as a base class for deriving custom settings providers in the application settings architecture. |
SettingsProviderAttribute |
指定用于存储当前应用程序设置类或属性的设置提供程序。Specifies the settings provider used to provide storage for the current application settings class or property. 此类不能被继承。This class cannot be inherited. |
SettingsProviderCollection |
表示应用程序设置提供程序的集合。Represents a collection of application settings providers. |
SettingsSerializeAsAttribute |
指定设置提供程序应使用的序列化机制。Specifies the serialization mechanism that the settings provider should use. 此类不能被继承。This class cannot be inherited. |
SettingValueElement |
包含表示设置的序列化值的 XML。Contains the XML representing the serialized value of the setting. 此类不能被继承。This class cannot be inherited. |
SingleTagSectionHandler |
处理 .config 文件中由单个 XML 标记所表示的各配置节。Handles configuration sections that are represented by a single XML tag in the .config file. |
SpecialSettingAttribute |
指示应用程序设置属性具有特别意义。Indicates that an application settings property has a special significance. 此类不能被继承。This class cannot be inherited. |
StringValidator |
对字符串进行验证。Provides validation of a string. |
StringValidatorAttribute |
以声明的方式指示 .NET Framework 对配置属性执行字符串验证。Declaratively instructs the .NET Framework to perform string validation on a configuration property. 此类不能被继承。This class cannot be inherited. |
SubclassTypeValidator |
验证一个对象是否是指定类型的派生类。Validates that an object is a derived class of a specified type. |
SubclassTypeValidatorAttribute |
以声明方式指示 .NET Framework 对配置属性执行验证。Declaratively instructs the .NET Framework to perform validation on a configuration property. 此类不能被继承。This class cannot be inherited. |
TimeSpanMinutesConverter |
转换以分钟表示的时间跨度。Converts a time span expressed in minutes. |
TimeSpanMinutesOrInfiniteConverter |
转换以分钟表示(或作为标准的无限时间跨度)的 TimeSpan。Converts a TimeSpan expressed in minutes or as a standard infinite time span. |
TimeSpanSecondsConverter |
转换以秒表示的时间跨度。Converts a time span expressed in seconds. |
TimeSpanSecondsOrInfiniteConverter |
转换以秒表示的 TimeSpan,或将其转换为标准的无限时间跨度。Converts a TimeSpan expressed in seconds or as a standard infinite time span. |
TimeSpanValidator | |
TimeSpanValidatorAttribute |
以声明的方式指示 .NET Framework 对配置属性执行时间验证。Declaratively instructs the .NET Framework to perform time validation on a configuration property. 此类不能被继承。This class cannot be inherited. |
TypeNameConverter |
在类型和字符串值之间转换。Converts between type and string values. 此类不能被继承。This class cannot be inherited. |
UriSection |
表示配置文件中的 Uri 节。Represents the Uri section within a configuration file. |
UserScopedSettingAttribute |
指定应用程序设置组或属性对于应用程序的每个用户包含不同的值。Specifies that an application settings group or property contains distinct values for each user of an application. 此类不能被继承。This class cannot be inherited. |
UserSettingsGroup |
表示配置文件内的一组相关用户设置节。Represents a grouping of related user settings sections within a configuration file. 此类不能被继承。This class cannot be inherited. |
WhiteSpaceTrimStringConverter |
将字符串转换为它的规范化格式。Converts a string to its canonical format. |
接口
IApplicationSettingsProvider |
为基于客户端的应用程序的设置提供程序定义扩展功能。Defines extended capabilities for client-based application settings providers. |
IConfigurationSectionHandler |
处理对特定的配置节的访问。Handles the access to certain configuration sections. |
IConfigurationSystem |
提供标准配置方法。Provides standard configuration methods. |
IPersistComponentSettings |
定义存储和检索应用程序设置的控件或类的标准功能。Defines standard functionality for controls or libraries that store and retrieve application settings. |
ISettingsProviderService |
提供用于定义备用应用程序设置提供程序的接口。Provides an interface for defining an alternate application settings provider. |
枚举
ConfigurationAllowDefinition |
指定配置文件层次结构中的位置,在其中可设置或替代 ConfigurationSection 对象中包含的属性。Specifies the locations within the configuration-file hierarchy that can set or override the properties contained within a ConfigurationSection object. |
ConfigurationAllowExeDefinition |
指定配置文件层次结构中的位置,在其中可设置或替代 ConfigurationSection 对象中包含的属性。Specifies the locations within the configuration-file hierarchy that can set or override the properties contained within a ConfigurationSection object. |
ConfigurationElementCollectionType |
指定 ConfigurationElementCollectionType 对象的类型。Specifies the type of a ConfigurationElementCollectionType object. |
ConfigurationPropertyOptions |
指定要应用于属性的选项。Specifies the options to apply to a property. |
ConfigurationSaveMode |
确定写出到配置文件的属性。Determines which properties are written out to a configuration file. |
ConfigurationUserLevel |
用于指定将由 Configuration 对象表示的配置文件。Used to specify which configuration file is to be represented by the Configuration object. |
OverrideMode |
为子目录中的配置元素指定配置元素重写行为。Specifies the override behavior of a configuration element for configuration elements in child directories. |
PropertyValueOrigin |
指定配置层次结构中的级别,在此级别上产生配置属性值。Specifies the level in the configuration hierarchy where a configuration property value originated. |
SettingsManageability |
提供若干值,以指示应该对应用程序设置使用哪些服务。Provides values to indicate which services should be made available to application settings. |
SettingsSerializeAs |
确定用于存储应用程序设置的序列化方案。Determines the serialization scheme used to store application settings. |
SpecialSetting |
指定应用程序设置属性的特殊设置类别。Specifies the special setting category of a application settings property. |
委托
SettingChangingEventHandler |
表示用来处理 SettingChanging 事件的方法。Represents the method that will handle the SettingChanging event. |
SettingsLoadedEventHandler |
表示用来处理 SettingsLoaded 事件的方法。Represents the method that will handle the SettingsLoaded event. |
SettingsSavingEventHandler |
表示用来处理 SettingsSaving 事件的方法。Represents the method that will handle the SettingsSaving event. |
ValidatorCallback |
表示验证一个对象后要调用的方法。Represents a method to be called after the validation of an object. |