Records.DeleteAllPreviousVersionsOfListItem Method
Deletes all previous version of the specified list item.
Namespace: Microsoft.Office.RecordsManagement.RecordsRepository
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Sub DeleteAllPreviousVersionsOfListItem ( _
item As SPListItem, _
deleteMajorVersions As Boolean _
)
'Usage
Dim item As SPListItem
Dim deleteMajorVersions As BooleanRecords.DeleteAllPreviousVersionsOfListItem(item, _
deleteMajorVersions)
public static void DeleteAllPreviousVersionsOfListItem(
SPListItem item,
bool deleteMajorVersions
)
Parameters
item
Type: Microsoft.SharePoint.SPListItemThe item for which all previous versions are deleted.
deleteMajorVersions
Type: System.BooleanWhether to delete major versions.
See Also
Reference
Microsoft.Office.RecordsManagement.RecordsRepository Namespace