SettingsBase Class
Provides the base class used to support user property settings.
System.Configuration::SettingsBase
System.Configuration::ApplicationSettingsBase
System.Web.Profile::ProfileBase
Assembly: System (in System.dll)
The SettingsBase type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Context | Gets the associated settings context. |
![]() | IsSynchronized | Gets a value indicating whether access to the object is synchronized (thread safe). |
![]() | Item | Gets or sets the value of the specified settings property. |
![]() | Properties | Gets the collection of settings properties. |
![]() | PropertyValues | Gets a collection of settings property values. |
![]() | Providers | Gets a collection of settings providers. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Initialize | Initializes internal properties used by SettingsBase object. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Save | Stores the current values of the settings properties. |
![]() ![]() | Synchronized | Provides a SettingsBase class that is synchronized (thread safe). |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
ASP.NET Web Forms and Windows Forms both use the same configuration settings infrastructure to support user settings. User settings within ASP.NET are often referred to as ASP.NET Profile. The settings infrastructure includes the SettingsBase base class, the SettingsProperty class, the SettingsPropertyValue class, the SettingsContext class, the SettingsProvider class, and the SettingAttribute
class.
The Settings base classes provide only a common infrastructure for defining and persisting settings properties. Depending on how these base classes are derived and their run-time environment, the settings API can provide different levels of functionality. For example, ASP.NET Profile uses the settings base classes to provide per-user settings that are saved and loaded according to request semantics.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
