다음을 통해 공유


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

  • deleteMajorVersions
    Type: System.Boolean

    Whether to delete major versions.

See Also

Reference

Records Class

Records Members

Microsoft.Office.RecordsManagement.RecordsRepository Namespace