다음을 통해 공유


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

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