SettingsBase SettingsBase SettingsBase SettingsBase Class

Definition

Provides the base class used to support user property settings.

public ref class SettingsBase abstract
public abstract class SettingsBase
type SettingsBase = class
Public MustInherit Class SettingsBase
Inheritance
SettingsBaseSettingsBaseSettingsBaseSettingsBase
Derived

Remarks

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.

Constructors

SettingsBase() SettingsBase() SettingsBase() SettingsBase()

Initializes a new instance of the SettingsBase class.

Properties

Context Context Context Context

Gets the associated settings context.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

Gets a value indicating whether access to the object is synchronized (thread safe).

Item[String] Item[String] Item[String] Item[String]

Gets or sets the value of the specified settings property.

Properties Properties Properties Properties

Gets the collection of settings properties.

PropertyValues PropertyValues PropertyValues PropertyValues

Gets a collection of settings property values.

Providers Providers Providers Providers

Gets a collection of settings providers.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection) Initialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection) Initialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection) Initialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection)

Initializes internal properties used by SettingsBase object.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Save() Save() Save() Save()

Stores the current values of the settings properties.

Synchronized(SettingsBase) Synchronized(SettingsBase) Synchronized(SettingsBase) Synchronized(SettingsBase)

Provides a SettingsBase class that is synchronized (thread safe).

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See Also