Export (0) Print
Expand All

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)

public void DeleteAllPersonalizations(
	int userId
)

Parameters

userId
Type: System.Int32

A 32-bit integer that specifies the user ID.

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

Show:
© 2015 Microsoft