Share via


SPRecycleBinItem.MoveToSecondStage method

Moves the item from the end-user Recycle Bin to the second-stage Recycle Bin of the site collection.

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

Syntax

'Declaration
Public Sub MoveToSecondStage
'Usage
Dim instance As SPRecycleBinItem

instance.MoveToSecondStage()
public void MoveToSecondStage()

Exceptions

Exception Condition
InvalidOperationException

The value of the ItemState property is not FirstStageRecycleBin.

-or-

The second-stage Recycle Bin has not been allocated any space for items.

-or-

The Recycle Bin item could not be found.

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

SPRecycleBinItem class

SPRecycleBinItem members

Microsoft.SharePoint namespace