Share via


DocumentSetVersionCollection.GetEnumerator Method

Returns an enumerator to iterate through the DocumentSetVersionCollection object.

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

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator
'Usage
Dim instance As DocumentSetVersionCollection
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
public IEnumerator GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
Returns IEnumerator.

Implements

IEnumerable.GetEnumerator()

Exceptions

Exception Condition
InvalidOperationException

Cannot work with snapshot because versioning is not enabled on the parent SPList object.

See Also

Reference

DocumentSetVersionCollection Class

DocumentSetVersionCollection Members

Microsoft.Office.DocumentManagement.DocumentSets Namespace