Export (0) Print
Expand All

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
)

Parameters

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft