Partager via


DeleteAllPersonalizations(Int32) Method

The DeleteAllPersonalizations method of the SPWebPartCollection class deletes all personalizations by the user with the specified ID from the collection.

Parameters

userId   A 32-bit integer that identifies the user.

Remarks

The DeleteAllPersonalizations method removes only the personalizations of the current user if the collection pertains to a single user. Otherwise, this method removes personalizations for all users.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security