System.Web.UI.WebControls.WebParts.IVersioningPersonalizable.Load Method

Loads personalization data to a Web Parts control that does not have a corresponding personalized property for the data due to a version change.

Syntax

public void Load (IDictionary unknownProperties)

Parameters

unknownProperties
A dictionary of personalization data that could not be applied to a control.

Returns

true if the personalization data was successfully loaded; otherwise, false.

Remarks

The unknownProperties parameter contains a merged representation of unknown personalization data, of both "User" and "Shared" scope, that could not be applied to the control. When a page is running in user scope, the unknown user-scope values are supplied (if available) rather than unknown shared-scope values. This information is stored as a series of name/value pairs where each name is the string name of a property that was not found on the control and each value contains the property value. It is the responsibility of the control to cast or convert the value to the appropriate type and carry out further processing (such as mapping data from an old property to a new property).

If a control's state changes, it should call erload:System.Web.UI.WebControls.WebParts.WebPart.SetPersonalizationDirty (either the inherited method, or the public static method in the case of a control that does not derive from System.Web.UI.WebControls.WebParts.WebPart). If a control marks itself as "dirty", the Web Parts control set will extract personalization data from the control, regardless of the control's "dirty" state, and save it back to the underlying data store later in the personalization life cycle. A control should mark itself as "dirty" if, as a result of processing the values in the unknownProperties parameter, the control's state has changed.

Note that if orphaned properties are detected when importing Web Parts controls, this method is automatically called.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0