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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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