DocumentSetVersionCollection.DeleteAll Method

Deletes all the previous snapshots.

Namespace:  Microsoft.Office.DocumentManagement.DocumentSets
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)

Syntax

'Declaration
Public Sub DeleteAll
'Usage
Dim instance As DocumentSetVersionCollection

instance.DeleteAll()
public void DeleteAll()

Exceptions

Exception Condition
InvalidOperationException

Cannot work with snapshot because versioning is not enabled on the parent list of %1.

Remarks

Permanently deletes all snapshots information from the version collection. The SPListItemVersionCollection object for each of the items in the document set is unaffected. The next snapshot version label will continue numbering sequentially since the last label number.

See Also

Reference

DocumentSetVersionCollection Class

DocumentSetVersionCollection Members

Microsoft.Office.DocumentManagement.DocumentSets Namespace