PersonalizationState.SetWebPartDirty(WebPart) 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.
When overridden, marks a Web Parts control as having changed.
public:
abstract void SetWebPartDirty(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
public abstract void SetWebPartDirty (System.Web.UI.WebControls.WebParts.WebPart webPart);
abstract member SetWebPartDirty : System.Web.UI.WebControls.WebParts.WebPart -> unit
Public MustOverride Sub SetWebPartDirty (webPart As WebPart)
Parameters
- webPart
- WebPart
The Web Parts control to be marked as having changed.
Remarks
This is an abstract definition of the method used to indicate that a Web Parts control has changed (is "dirty"). The WebPart class exposes methods (which in turn call this method) that can be used by developers to mark a Web Parts control as "dirty," thus indicating the need to reserialize and save personalization state.