Share via


SPWebPartCollection.DeleteAllPersonalizations method (Int32)

NOTE: This API is now obsolete.

Obsolete. Deletes all personalizations by the user with the specified ID from the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Sub DeleteAllPersonalizations ( _
    userId As Integer _
)
'Usage
Dim instance As SPWebPartCollection
Dim userId As Integer

instance.DeleteAllPersonalizations(userId)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public void DeleteAllPersonalizations(
    int userId
)

Parameters

  • userId
    Type: System.Int32

    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.

See also

Reference

SPWebPartCollection class

SPWebPartCollection members

DeleteAllPersonalizations overload

Microsoft.SharePoint namespace