다음을 통해 공유


SPWebPartCollection.DeleteAllPersonalizations Method

NOTE: This API is now obsolete.

Obsolete. Deletes all personalizations by all users from the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

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

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