DocumentSetVersionCollection.Item Property (Int32)
Gets the snapshot at the specified index in the DocumentSetVersionCollection object.
Namespace: Microsoft.Office.DocumentManagement.DocumentSets
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
index As Integer _
) As DocumentSetVersion
Get
'Usage
Dim instance As DocumentSetVersionCollection
Dim index As Integer
Dim value As DocumentSetVersion
value = instance(index)
public DocumentSetVersion this[
int index
] { get; }
Parameters
index
Type: System.Int32An integer that specifies the index of the snapshot.
Property Value
Type: Microsoft.Office.DocumentManagement.DocumentSets.DocumentSetVersion
A DocumentSetVersion object that represents the snapshot of this DocumentSet object.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Cannot work with snapshot because versioning is not enabled on the parent SPList object. |
ArgumentOutOfRangeException | Index was out of range. Must be non-negative and less than the size of the DocumentSet object. |
See Also
Reference
DocumentSetVersionCollection Class
DocumentSetVersionCollection Members