SPWebPartCollection.DeletePersonalizations method

NOTE: This API is now obsolete.

Obsolete. Deletes personalizations of the Web Part with the specified GUID.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Sub DeletePersonalizations ( _
    storageKey As Guid _
)
'Usage
Dim instance As SPWebPartCollection
Dim storageKey As Guid

instance.DeletePersonalizations(storageKey)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public void DeletePersonalizations(
    Guid storageKey
)

Parameters

  • storageKey
    Type: System.Guid

    A GUID that identifies the Web Part.

Remarks

The DeletePersonalizations 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

Microsoft.SharePoint namespace