SPListItemVersion.Recycle method
Recycles the list item version.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Recycle
'Usage
Dim instance As SPListItemVersion
instance.Recycle()
public void Recycle()
Exceptions
Exception | Condition |
---|---|
SPException | The list item version is the current version. |
Remarks
This method removes the list item version to the recycle bin and marks the list item version collection as modified.