WebPartManager.IPersonalizable.Load(PersonalizationDictionary) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns previously saved custom personalization state data that needs to be loaded to the WebPartManager control.
virtual void System.Web.UI.WebControls.WebParts.IPersonalizable.Load(System::Web::UI::WebControls::WebParts::PersonalizationDictionary ^ state) = System::Web::UI::WebControls::WebParts::IPersonalizable::Load;
void IPersonalizable.Load(System.Web.UI.WebControls.WebParts.PersonalizationDictionary state);
abstract member System.Web.UI.WebControls.WebParts.IPersonalizable.Load : System.Web.UI.WebControls.WebParts.PersonalizationDictionary -> unit
override this.System.Web.UI.WebControls.WebParts.IPersonalizable.Load : System.Web.UI.WebControls.WebParts.PersonalizationDictionary -> unit
Sub Load (state As PersonalizationDictionary) Implements IPersonalizable.Load
A PersonalizationDictionary that contains the state data to be loaded.
This method is an implementation of the IPersonalizable.Load method, which provides a way for the Web Parts control set to directly access the protected WebPartManager.LoadCustomPersonalizationState method. When this method is called, it stores the custom personalized data that is managed by the WebPartManager control, and that was previously saved in the permanent data store for use later in the initialization process.
Примітка
In most cases, page and control developer code does not need to call this method, because it is primarily used by the Web Parts control set as its mechanism for retrieving personalization data.
One scenario in which developers would use this method is if they are developing a custom personalization framework to use in place of the one provided by the Web Parts control set. In such cases, developers could inherit from the WebPartManager class and override the CreatePersonalization() method to return a custom implementation of a WebPartPersonalization object. The custom WebPartPersonalization object would call the implementation of the IPersonalizable.Load(PersonalizationDictionary) method at the proper time to load custom personalization data.
Продукт | Версії |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: