.NET Framework Class Library
System.Configuration Namespace

The System.Configuration namespace contains the types that provide the programming model for handling configuration data.

Classes
  ClassDescription
Public class ApplicationScopedSettingAttributeSpecifies that an application settings property has a common value for all users of an application. This class cannot be inherited.
Public class ApplicationSettingsBaseActs as a base class for deriving concrete wrapper classes to implement the application settings feature in Window Forms applications.
Public class ApplicationSettingsGroupRepresents a grouping of related application settings sections within a configuration file. This class cannot be inherited.
Public class AppSettingsReaderProvides a method for reading values of a particular type from the configuration.
Public class AppSettingsSectionProvides configuration system support for the appSettings configuration section. This class cannot be inherited.
Public class CallbackValidatorProvides dynamic validation of an object.
Public class CallbackValidatorAttributeSpecifies a CallbackValidator object to use for code validation. This class cannot be inherited.
Public class ClientSettingsSectionRepresents a group of user-scoped application settings in a configuration file.
Public class CommaDelimitedStringCollectionRepresents a collection of string elements separated by commas. This class cannot be inherited.
Public class CommaDelimitedStringCollectionConverterConverts a comma-delimited string value to and from a CommaDelimitedStringCollection object. This class cannot be inherited.
Public class ConfigurationRepresents a configuration file that is applicable to a particular computer, application, or resource. This class cannot be inherited.
Public class ConfigurationCollectionAttributeDeclaratively instructs the .NET Framework to create an instance of a configuration element collection. This class cannot be inherited.
Public class ConfigurationConverterBaseThe base class for the configuration converter types.
Public class ConfigurationElementRepresents a configuration element within a configuration file.
Public class ConfigurationElementCollectionRepresents a configuration element containing a collection of child elements.
Public class ConfigurationElementPropertySpecifies the property of a configuration element. This class cannot be inherited.
Public class ConfigurationErrorsExceptionThe current value is not one of the EnableSessionState values.
Public class ConfigurationExceptionThe exception that is thrown when a configuration system error has occurred.
Public class ConfigurationFileMapDefines the configuration file mapping for the machine configuration file.
Public class ConfigurationLocationRepresents a location element within a configuration file.
Public class ConfigurationLocationCollectionContains a collection of ConfigurationLocationCollection objects.
Public class ConfigurationLockCollectionContains a collection of locked configuration objects. This class cannot be inherited.
Public class ConfigurationManagerProvides access to configuration files for client applications. This class cannot be inherited.
Public class ConfigurationPermissionProvides a permission structure that allows methods or classes to access configuration files.
Public class ConfigurationPermissionAttributeCreates a ConfigurationPermission object that either grants or denies the marked target permission to access sections of configuration files.
Public class ConfigurationPropertyInfrastructure. Represents an attribute or a child of a configuration element. This class cannot be inherited.
Public class ConfigurationPropertyAttributeDeclaratively instructs the .NET Framework to instantiate a configuration property. This class cannot be inherited.
Public class ConfigurationPropertyCollectionRepresents a collection of configuration-element properties.
Public class ConfigurationSectionRepresents a section within a configuration file.
Public class ConfigurationSectionCollectionRepresents a collection of related sections within a configuration file.
Public class ConfigurationSectionGroupRepresents a group of related sections within a configuration file.
Public class ConfigurationSectionGroupCollectionRepresents a collection of ConfigurationSectionGroup objects.
Public class ConfigurationSettingsProvides runtime versions 1.0 and 1.1 support for reading configuration sections and common configuration settings.
Public class ConfigurationValidatorAttributeServes as the base class for the System.Configuration validator attribute types.
Public class ConfigurationValidatorBaseActs as a base class for deriving a validation class so that a value of an object can be verified.
Public class ConfigXmlDocumentInfrastructure. Wraps the corresponding XmlDocument type and also carries the necessary information for reporting file-name and line numbers.
Public class ConnectionStringSettingsRepresents a single, named connection string in the connection strings configuration file section.
Public class ConnectionStringSettingsCollectionContains a collection of ConnectionStringSettings objects.
Public class ConnectionStringsSectionProvides programmatic access to the connection strings configuration-file section.
Public class ContextInformationEncapsulates the context information that is associated with a ConfigurationElement object. This class cannot be inherited.
Public class DefaultSectionRepresents a basic configuration-section handler that exposes the configuration section's XML for both read and write access.
Public class DefaultSettingValueAttributeSpecifies the default value for an application settings property.
Public class DefaultValidatorProvides validation of an object. This class cannot be inherited.
Public class DictionarySectionHandlerProvides key/value pair configuration information from a configuration section.
Public class DpapiProtectedConfigurationProviderProvides a ProtectedConfigurationProvider object that uses the Windows data protection API (DPAPI) to encrypt and decrypt configuration data.
Public class ElementInformationContains meta-information about an individual element within the configuration. This class cannot be inherited.
Public class ExeConfigurationFileMapDefines the configuration file mapping for an .exe application. This class cannot be inherited.
Public class ExeContextManages the path context for the current application. This class cannot be inherited.
Public class GenericEnumConverterConverts between a string and an enumeration type.
Public class IdnElementProvides the configuration setting for International Domain Name (IDN) processing in the SystemUri class.
Public class IgnoreSectionProvides a wrapper type definition for configuration sections that are not handled by the System.Configuration types.
Public class IgnoreSectionHandlerProvides a legacy section-handler definition for configuration sections that are not handled by the System.Configuration types.
Public class InfiniteIntConverterConverts between a string and the standard infinite or integer value.
Public class InfiniteTimeSpanConverterConverts between a string and the standard infinite TimeSpan value.
Public class IntegerValidatorProvides validation of an Int32 value.
Public class IntegerValidatorAttributeDeclaratively instructs the .NET Framework to perform integer validation on a configuration property. This class cannot be inherited.
Public class IriParsingElementProvides the configuration setting for International Resource Identifier (IRI) processing in the SystemUri class.
Public class KeyValueConfigurationCollectionContains a collection of KeyValueConfigurationElement objects.
Public class KeyValueConfigurationElementRepresents a configuration element that contains a key/value pair.
Public class LocalFileSettingsProviderProvides persistence for application settings classes.
Public class LongValidatorProvides validation of an Int64 value.
Public class LongValidatorAttributeDeclaratively instructs the .NET Framework to perform long-integer validation on a configuration property. This class cannot be inherited.
Public class NameValueConfigurationCollectionContains a collection of NameValueConfigurationElement objects. This class cannot be inherited.
Public class NameValueConfigurationElementA configuration element that contains a String name and String value. This class cannot be inherited.
Public class NameValueFileSectionHandlerProvides access to a configuration file. This type supports the .NET Framework configuration infrastructure and is not intended to be used directly from your code.
Public class NameValueSectionHandlerProvides name/value-pair configuration information from a configuration section.
Public class NoSettingsVersionUpgradeAttributeSpecifies that a settings provider should disable any logic that gets invoked when an application upgrade is detected. This class cannot be inherited.
Public class PositiveTimeSpanValidatorProvides validation of a TimeSpan object. This class cannot be inherited.
Public class PositiveTimeSpanValidatorAttributeDeclaratively instructs the .NET Framework to perform time validation on a configuration property. This class cannot be inherited.
Public class PropertyInformationContains meta-information on an individual property within the configuration. This type cannot be inherited.
Public class PropertyInformationCollectionContains a collection of PropertyInformation objects. This class cannot be inherited.
Public class ProtectedConfigurationProvides access to the protected-configuration providers for the current application's configuration file.
Public class ProtectedConfigurationProviderIs the base class to create providers for encrypting and decrypting protected-configuration data.
Public class ProtectedConfigurationProviderCollectionProvides a collection of ProtectedConfigurationProvider objects.
Public class ProtectedConfigurationSectionProvides programmatic access to the configProtectedData configuration section. This class cannot be inherited.
Public class ProtectedProviderSettingsRepresents a group of configuration elements that configure the providers for the <configProtectedData> configuration section.
Public class ProviderSettingsRepresents the configuration elements associated with a provider.
Public class ProviderSettingsCollectionRepresents a collection of ProviderSettings objects.
Public class RegexStringValidatorProvides validation of a string based on the rules provided by a regular expression.
Public class RegexStringValidatorAttributeDeclaratively instructs the .NET Framework to perform string validation on a configuration property using a regular expression. This class cannot be inherited.
Public class RsaProtectedConfigurationProviderProvides a ProtectedConfigurationProvider instance that uses RSA encryption to encrypt and decrypt configuration data.
Public class SchemeSettingElementRepresents an element in a SchemeSettingElementCollection class.
Public class SchemeSettingElementCollectionRepresents a collection of SchemeSettingElement objects.
Public class SectionInformationContains metadata about an individual section within the configuration hierarchy. This class cannot be inherited.
Public class SettingAttributeRepresents a custom settings attribute used to associate settings information with a settings property.
Public class SettingChangingEventArgsProvides data for the SettingChanging event.
Public class SettingElementRepresents a simplified configuration element used for updating elements in the configuration. This class cannot be inherited.
Public class SettingElementCollectionContains a collection of SettingElement objects. This class cannot be inherited.
Public class SettingsAttributeDictionaryRepresents a collection of key/value pairs used to describe a configuration object as well as a SettingsProperty object.
Public class SettingsBaseProvides the base class used to support user property settings.
Public class SettingsContextProvides contextual information that the provider can use when persisting settings.
Public class SettingsDescriptionAttributeProvides a string that describes an individual configuration property. This class cannot be inherited.
Public class SettingsGroupDescriptionAttributeProvides a string that describes an application settings property group. This class cannot be inherited.
Public class SettingsGroupNameAttributeSpecifies a name for application settings property group. This class cannot be inherited.
Public class SettingsLoadedEventArgsProvides data for the SettingsLoaded event.
Public class SettingsManageabilityAttributeSpecifies special services for application settings properties. This class cannot be inherited.
Public class SettingsPropertyUsed internally as the class that represents metadata about an individual configuration property.
Public class SettingsPropertyCollectionContains a collection of SettingsProperty objects.
Public class SettingsPropertyIsReadOnlyExceptionProvides an exception for read-only SettingsProperty objects.
Public class SettingsPropertyNotFoundExceptionProvides an exception for SettingsProperty objects that are not found.
Public class SettingsPropertyValueContains the value of a settings property that can be loaded and stored by an instance of SettingsBase.
Public class SettingsPropertyValueCollectionContains a collection of settings property values that map SettingsProperty objects to SettingsPropertyValue objects.
Public class SettingsPropertyWrongTypeExceptionProvides an exception that is thrown when an invalid type is used with a SettingsProperty object.
Public class SettingsProviderActs as a base class for deriving custom settings providers in the application settings architecture.
Public class SettingsProviderAttributeSpecifies the settings provider used to provide storage for the current application settings class or property. This class cannot be inherited.
Public class SettingsProviderCollectionRepresents a collection of application settings providers.
Public class SettingsSerializeAsAttributeSpecifies the serialization mechanism that the settings provider should use. This class cannot be inherited.
Public class SettingValueElementContains the XML representing the serialized value of the setting. This class cannot be inherited.
Public class SingleTagSectionHandlerInfrastructure. Handles configuration sections that are represented by a single XML tag in the .config file.
Public class SpecialSettingAttributeIndicates that an application settings property has a special significance. This class cannot be inherited.
Public class StringValidatorProvides validation of a string.
Public class StringValidatorAttributeDeclaratively instructs the .NET Framework to perform string validation on a configuration property. This class cannot be inherited.
Public class SubclassTypeValidatorValidates that an object is a derived class of a specified type.
Public class SubclassTypeValidatorAttributeDeclaratively instructs the .NET Framework to perform validation on a configuration property. This class cannot be inherited.
Public class TimeSpanMinutesConverterConverts a time span expressed in minutes.
Public class TimeSpanMinutesOrInfiniteConverterConverts a TimeSpan expressed in minutes or as a standard infinite time span.
Public class TimeSpanSecondsConverterConverts a time span expressed in seconds.
Public class TimeSpanSecondsOrInfiniteConverterConverts a TimeSpan expressed in seconds or as a standard infinite time span.
Public class TimeSpanValidatorProvides validation of a TimeSpan object.
Public class TimeSpanValidatorAttributeDeclaratively instructs the .NET Framework to perform time validation on a configuration property. This class cannot be inherited.
Public class TypeNameConverterConverts between type and string values. This class cannot be inherited.
Public class UriSectionRepresents the Uri section within a configuration file.
Public class UserScopedSettingAttributeSpecifies that an application settings group or property contains distinct values for each user of an application. This class cannot be inherited.
Public class UserSettingsGroupRepresents a grouping of related user settings sections within a configuration file. This class cannot be inherited.
Public class WhiteSpaceTrimStringConverterConverts a string to its canonical format.
Interfaces
  InterfaceDescription
Public interface IApplicationSettingsProviderDefines extended capabilities for client-based application settings providers.
Public interface IConfigurationSectionHandlerHandles the access to certain configuration sections.
Public interface IConfigurationSystemInfrastructure. Provides standard configuration methods.
Public interface IPersistComponentSettingsDefines standard functionality for controls or libraries that store and retrieve application settings.
Public interface ISettingsProviderServiceProvides an interface for defining an alternate application settings provider.
Delegates
  DelegateDescription
Public delegate SettingChangingEventHandlerRepresents the method that will handle the SettingChanging event.
Public delegate SettingsLoadedEventHandlerRepresents the method that will handle the SettingsLoaded event.
Public delegate SettingsSavingEventHandlerRepresents the method that will handle the SettingsSaving event.
Public delegate ValidatorCallbackRepresents a method to be called after the validation of an object.
Enumerations
  EnumerationDescription
Public enumeration ConfigurationAllowDefinitionSpecifies the locations within the configuration-file hierarchy that can set or override the properties contained within a ConfigurationSection object.
Public enumeration ConfigurationAllowExeDefinitionSpecifies the locations within the configuration-file hierarchy that can set or override the properties contained within a ConfigurationSection object.
Public enumeration ConfigurationElementCollectionTypeSpecifies the type of a ConfigurationElementCollectionType object.
Public enumeration ConfigurationPropertyOptionsSpecifies the options to apply to a property.
Public enumeration ConfigurationSaveModeDetermines which properties are written out to a configuration file.
Public enumeration ConfigurationUserLevelUsed to specify which configuration file is to be represented by the Configuration object.
Public enumeration OverrideModeSpecifies the override behavior of a configuration element for configuration elements in child directories.
Public enumeration PropertyValueOriginSpecifies the level in the configuration hierarchy where a configuration property value originated.
Public enumeration SettingsManageabilityProvides values to indicate which services should be made available to application settings.
Public enumeration SettingsSerializeAsDetermines the serialization scheme used to store application settings.
Public enumeration SpecialSettingSpecifies the special setting category of a application settings property.