Partilhar via


SPRecycleBinItemCollection.Restore Method

Restores the specified Recycle Bin items to their original locations.

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

Syntax

'Declaration
Public Sub Restore ( _
    ids As Guid() _
)
'Usage
Dim instance As SPRecycleBinItemCollection
Dim ids As Guid()

instance.Restore(ids)
public void Restore(
    Guid[] ids
)

Parameters

  • ids
    Type: []

    A System.Guid array that specifies the Recycle Bin items to restore.

Exceptions

Exception Condition
ArgumentException

An item with one of the ID values does not exist in the recycle bin item collection.

See Also

Reference

SPRecycleBinItemCollection Class

SPRecycleBinItemCollection Members

Microsoft.SharePoint Namespace