This documentation is archived and is not being maintained.

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.

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

void Load(
	IDictionary unknownProperties


Type: System.Collections.IDictionary

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

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 SetPersonalizationDirty (either the inherited method, or the public static method in the case of a control that does not derive from 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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0