共用方式為


SPFile.DeleteAllPersonalizations Method

Deletes all personalization information from theWeb Parts page, home page, or wiki page for the user with the specified ID.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Sub DeleteAllPersonalizations ( _
    userId As Integer _
)
'Usage
Dim instance As SPFile
Dim userId As Integer

instance.DeleteAllPersonalizations(userId)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public void DeleteAllPersonalizations(
    int userId
)

Parameters

  • userId
    Type: System.Int32

    A 32-bit integer that specifies the user ID.

Remarks

Use the UserId property of the SPUserStorage class to get the ID to pass as a parameter for the DeleteAllPersonalizations method.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace