SPListItemVersion.Delete Method

Deletes the list item version.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub Delete
'Usage
Dim instance As SPListItemVersion

instance.Delete()
public void Delete()

Exceptions

Exception Condition
SPException

The list item version is the current version.

Remarks

This method deletes the list item version from the store and marks the list item version collection as modified.

See Also

Reference

SPListItemVersion Class

SPListItemVersion Members

Microsoft.SharePoint Namespace