WebPartPersonalization.SetDirty 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.
Marks the parent WebPartManager control as having personalization data that has changed (is "dirty").
Overloads
SetDirty() |
Marks the parent WebPartManager control as having personalization data that has changed (is "dirty"). |
SetDirty(WebPart) |
Marks the specified Web Parts control as having personalization data that has changed (is "dirty"). |
SetDirty()
Marks the parent WebPartManager control as having personalization data that has changed (is "dirty").
protected public:
virtual void SetDirty();
protected internal virtual void SetDirty ();
abstract member SetDirty : unit -> unit
override this.SetDirty : unit -> unit
Protected Friend Overridable Sub SetDirty ()
Exceptions
No personalization data has been loaded.
Remarks
If the IsEnabled property is set to true
, this method marks the parent WebPartManager control as "dirty". Depending on the implementation details of the WebPartManager control's instance of WebPartPersonalization, this method might invoke security checks and code access security permission checks. Internally, this method calls the SetWebPartManagerDirty method.
Note that the WebPartManager control tracks "dirty" state internally and exposes the "dirtiness" of the manager through the IsDirty property rather than through this method.
See also
- WebPartPersonalization
- ASP.NET Web Parts Controls
- Web Parts Personalization Overview
- Walkthrough: Implementing Web Parts Personalization with a User Control
- Web Parts Personalization
Applies to
SetDirty(WebPart)
Marks the specified Web Parts control as having personalization data that has changed (is "dirty").
protected public:
virtual void SetDirty(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
protected internal virtual void SetDirty (System.Web.UI.WebControls.WebParts.WebPart webPart);
abstract member SetDirty : System.Web.UI.WebControls.WebParts.WebPart -> unit
override this.SetDirty : System.Web.UI.WebControls.WebParts.WebPart -> unit
Protected Friend Overridable Sub SetDirty (webPart As WebPart)
Parameters
- webPart
- WebPart
The Web Parts control to be marked "dirty".
Exceptions
Attempted to mark as "dirty" a Web Parts control that is not managed by the parent WebPartManager.
No personalization data has been loaded.
Remarks
If the IsEnabled property is set to true
, this method marks the specified Web Parts control as "dirty". Depending on the implementation details of the WebPartManager control's instance of WebPartPersonalization, this method may invoke security checks and code access security permission checks.
See also
- WebPartPersonalization
- ASP.NET Web Parts Controls
- Web Parts Personalization Overview
- Walkthrough: Implementing Web Parts Personalization with a User Control
- Web Parts Personalization
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기