SPRecycleBinItemCollection.MoveToSecondStage Method (Guid , Boolean)
Moves the items with the specified IDs from the end-user Recycle Bin to the second stage of the site-collection Recycle Bin, and optionally specifies whether to delete an item if it is too large for the second stage.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub MoveToSecondStage ( _
ids As Guid(), _
deleteIfTooBig As Boolean _
)
'Usage
Dim instance As SPRecycleBinItemCollection
Dim ids As Guid()
Dim deleteIfTooBig As Boolean
instance.MoveToSecondStage(ids, deleteIfTooBig)
public void MoveToSecondStage(
Guid[] ids,
bool deleteIfTooBig
)
Parameters
ids
Type: []A System.Guid array that specifies the Recycle Bin items to move to the second-stage Recycle Bin.
deleteIfTooBig
Type: System.Booleantrue to delete an item permanently if the item is too big for the second-stage Recycle Bin; otherwise, false.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The percentage of storage quota that is allocated to second-stage recycle bin is zero. |
Remarks
Items that are deleted from the end-user Recycle Bin remain visible in the second-stage view of the site-collection Recycle Bin.
See Also
Reference
SPRecycleBinItemCollection Class