DocumentSetVersionCollection.Count Property
Gets the number of snapshots in the DocumentSetVersionCollection collection.
Namespace: Microsoft.Office.DocumentManagement.DocumentSets
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public ReadOnly Property Count As Integer
Get
'Usage
Dim instance As DocumentSetVersionCollection
Dim value As Integer
value = instance.Count
public int Count { get; }
Property Value
Type: System.Int32
An integer specifying the number of snapshots in the DocumentSetVersionCollection collection.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Cannot work with snapshot because versioning is not enabled on the parent SPList object. |
See Also
Reference
DocumentSetVersionCollection Class