Records.DeleteAllPreviousVersionsOfListItem(SPListItem, Boolean) Records.DeleteAllPreviousVersionsOfListItem(SPListItem, Boolean) Records.DeleteAllPreviousVersionsOfListItem(SPListItem, Boolean) Method

Definition

Deletes all previous version of the specified list item.

public:
 static void DeleteAllPreviousVersionsOfListItem(Microsoft::SharePoint::SPListItem ^ item, bool deleteMajorVersions);
public static void DeleteAllPreviousVersionsOfListItem (Microsoft.SharePoint.SPListItem item, bool deleteMajorVersions);
Public Shared Sub DeleteAllPreviousVersionsOfListItem (item As SPListItem, deleteMajorVersions As Boolean)
Parameters
item
SPListItem SPListItem SPListItem

The item for which all previous versions are deleted.

deleteMajorVersions
Boolean Boolean Boolean

Whether to delete major versions.

Applies to