WebPartPersonalization.SetDirty Method

Definition

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").

C#
protected internal virtual void 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

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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

SetDirty(WebPart)

Marks the specified Web Parts control as having personalization data that has changed (is "dirty").

C#
protected internal virtual void SetDirty(System.Web.UI.WebControls.WebParts.WebPart 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

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.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