WebPartManager.SaveCustomPersonalizationState Method
Definition
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.
Saves custom personalization state data maintained by the WebPartManager control, so that this data can be reloaded whenever the page is reloaded.
protected:
virtual void SaveCustomPersonalizationState(System::Web::UI::WebControls::WebParts::PersonalizationDictionary ^ state);
protected virtual void SaveCustomPersonalizationState (System.Web.UI.WebControls.WebParts.PersonalizationDictionary state);
abstract member SaveCustomPersonalizationState : System.Web.UI.WebControls.WebParts.PersonalizationDictionary -> unit
override this.SaveCustomPersonalizationState : System.Web.UI.WebControls.WebParts.PersonalizationDictionary -> unit
Protected Overridable Sub SaveCustomPersonalizationState (state As PersonalizationDictionary)
Parameters
A PersonalizationDictionary that contains the state data to be loaded.
Remarks
The SaveCustomPersonalizationState method is critical in the process of personalization, because it enables personalized user settings to be stored for future browser sessions and visits to a page. The method saves custom personalization state data, which includes items such as the following: dynamic WebPart or server controls that have been added to a page or deleted from a page; controls that have been moved on a page; and dynamic connections that have been created or deleted.
You cannot call this method directly from your code. You can, however, call the IPersonalizable.Save method, which itself calls this method to save personalization data.
Notes to Inheritors
Developers can override this method in a derived WebPartManager class to customize the process of saving personalization data.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기