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)
Available in Sandboxed Solutions: No
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.GuidA 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.