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)
Syntax
'Declaration
Public Sub DeleteAllPersonalizations ( _
userId As Integer _
)
'Usage
Dim instance As SPFile
Dim userId As Integer
instance.DeleteAllPersonalizations(userId)
public void DeleteAllPersonalizations(
int userId
)
Parameters
userId
Type: System.Int32A 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.