Export (0) Print
Expand All
Expand Minimize

WebPartManager.LoadCustomPersonalizationState Method

Stores the custom personalization data that has been passed to the WebPartManager control by the personalization objects to be used later during the initialization process.

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

protected virtual void LoadCustomPersonalizationState(
	PersonalizationDictionary state


Type: System.Web.UI.WebControls.WebParts.PersonalizationDictionary

A PersonalizationDictionary that contains the state data to be loaded.

The LoadCustomPersonalizationState method provides saved state data in the form of a PersonalizationDictionary object. This data is eventually used to load personalization data into the Web Parts controls and to perform other initialization tasks.


This method is called by a sequence of methods that begins when the TrackViewState method initially requests the associated WebPartPersonalization object to supply personalization data to the WebPartManager control.

You cannot call this method directly from your code. You can, however, directly call the IPersonalizable.Load method, which itself calls the LoadCustomPersonalizationState method and returns the personalization data.

Notes to Inheritors

Developers can override the LoadCustomPersonalizationState method in a derived WebPartManager class.

.NET Framework

Supported in: 4.6, 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.

© 2014 Microsoft