DocumentSetVersionCollection.Item Property (String)
Gets the snapshot with the specified label from the DocumentSetVersionCollection object.
Namespace: Microsoft.Office.DocumentManagement.DocumentSets
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
label As String _
) As DocumentSetVersion
Get
'Usage
Dim instance As DocumentSetVersionCollection
Dim label As String
Dim value As DocumentSetVersion
value = instance(label)
public DocumentSetVersion this[
string label
] { get; }
Parameters
label
Type: System.StringSnapshot version label.
Property Value
Type: Microsoft.Office.DocumentManagement.DocumentSets.DocumentSetVersion
A DocumentSetVersion object that represents the snapshot of the DocumentSet object.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Cannot work with the snapshot because versioning is not enabled on the parent SPList object. |
KeyNotFoundException | The specified key was not present in the dictionary. |
See Also
Reference
DocumentSetVersionCollection Class
DocumentSetVersionCollection Members