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