PersonalizationState Class
TOC
Collapse the table of content
Expand the table of content

PersonalizationState Class

 

Defines the basic functionality that represents the personalization data for a page.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.UI.WebControls.WebParts.PersonalizationState

public abstract class PersonalizationState

NameDescription
System_CAPS_protmethodPersonalizationState(WebPartManager)

Initializes a new instance of the PersonalizationState class.

NameDescription
System_CAPS_pubpropertyIsDirty

Gets a value that indicates whether any personalization information has changed.

System_CAPS_pubpropertyIsEmpty

When overridden, gets a value that indicates whether any personalization state was extracted by a state instance.

System_CAPS_pubpropertyWebPartManager

Gets a reference to the WebPartManager control currently associated with the personalization state instance.

NameDescription
System_CAPS_pubmethodApplyWebPartManagerPersonalization()

When overridden, applies personalization data to the WebPartManager control associated with the personalization state instance.

System_CAPS_pubmethodApplyWebPartPersonalization(WebPart)

When overridden, applies personalization data to the specified Web Parts control.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodExtractWebPartManagerPersonalization()

When overridden, extracts personalization information from the WebPartManager control associated with the current personalization state.

System_CAPS_pubmethodExtractWebPartPersonalization(WebPart)

When overridden, extracts personalization data from the specified Web Parts control.

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_pubmethodGetAuthorizationFilter(String)

Retrieves the authorization filter for the specified Web Parts control.

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_protmethodMemberwiseClone()

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

System_CAPS_protmethodSetDirty()

Marks the current personalization state as having changed.

System_CAPS_pubmethodSetWebPartDirty(WebPart)

When overridden, marks a Web Parts control as having changed.

System_CAPS_pubmethodSetWebPartManagerDirty()

When overridden, marks the associated WebPartManager control as having changed.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodValidateWebPart(WebPart)

Verifies that the specified Web Parts control is valid.

Classes that derive from this base class contain the actual implementation for managing, applying, and extracting personalization data. The WebPartPersonalization class makes use of personalization state with a reference to PersonalizationState.

If a developer writes a custom PersonalizationState implementation, a custom PersonalizationProvider must also be written. PersonalizationProvider instances are responsible for creating and consuming PersonalizationState instances.

Notes to Inheritors:

Derived classes should always call the base class constructor from the derived constructor.

.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:
© 2016 Microsoft