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)
Available in Sandboxed Solutions: No
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
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
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.