Share via


SPLimitedWebPartManager.ResetPersonalizationState method

Reset personalization state for a particular dynamic Web Part on the WebPartPage.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub ResetPersonalizationState ( _
    webPart As WebPart _
)
'Usage
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart

instance.ResetPersonalizationState(webPart)
public void ResetPersonalizationState(
    WebPart webPart
)

Parameters

Remarks

If the PersonalizationScope of the page is 'User' then personalization state for only the current user is reset.

If the PersonalizationScope is 'Shared' then personalization state for all users is reset.

If the Web Part is only visible to the current user because they added it while the PersonalizationScope was 'User', then the entire part is considered a personalization and will be deleted.

See also

Reference

SPLimitedWebPartManager class

SPLimitedWebPartManager members

Microsoft.SharePoint.WebPartPages namespace