Share via


SPPersistedObjectCollection<T>.GetEnumerator method

Gets an enumerator that can be used to iterate through the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function GetEnumerator As IEnumerator(Of T)
'Usage
Dim instance As SPPersistedObjectCollection
Dim returnValue As IEnumerator(Of T)

returnValue = instance.GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public IEnumerator<T> GetEnumerator()

Return value

Type: System.Collections.Generic.IEnumerator<T>
A System.Collections.Generic.IEnumerator interface that can be used to iterate through the collection.

Implements

IEnumerable<T>.GetEnumerator()

See also

Reference

SPPersistedObjectCollection<T> class

SPPersistedObjectCollection<T> members

Microsoft.SharePoint.Administration namespace