SPListItem.Recycle method

Deletes the item from the content database and returns a globally unique identifier (GUID) for the transaction.

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

Syntax

'Declaration
Public Function Recycle As Guid
'Usage
Dim instance As SPListItem
Dim returnValue As Guid

returnValue = instance.Recycle()
public Guid Recycle()

Return value

Type: System.Guid
An identifier for the deletion transaction.

Exceptions

Exception Condition
NotSupportedException

The parent list has an external data source.

See also

Reference

SPListItem class

SPListItem members

Microsoft.SharePoint namespace