SettingsBase Class

 

Provides the base class used to support user property settings.

Namespace:   System.Configuration
Assembly:  System (in System.dll)


public abstract class SettingsBase

NameDescription
System_CAPS_protmethodSettingsBase()

Initializes a new instance of the SettingsBase class.

NameDescription
System_CAPS_pubpropertyContext

Gets the associated settings context.

System_CAPS_pubpropertyIsSynchronized

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

System_CAPS_pubpropertyItem[String]

Gets or sets the value of the specified settings property.

System_CAPS_pubpropertyProperties

Gets the collection of settings properties.

System_CAPS_pubpropertyPropertyValues

Gets a collection of settings property values.

System_CAPS_pubpropertyProviders

Gets a collection of settings providers.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection)

Initializes internal properties used by SettingsBase object.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSave()

Stores the current values of the settings properties.

System_CAPS_pubmethodSystem_CAPS_staticSynchronized(SettingsBase)

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

System_CAPS_pubmethodToString()

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.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: