Share via


SPPersistedObjectCollection<T>.IEnumerable.GetEnumerator method

Returns an enumerator over all items in this list.

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

Syntax

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

returnValue = CType(instance, IEnumerable).GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
IEnumeratorIEnumerable.GetEnumerator()

Return value

Type: System.Collections.IEnumerator
Returns IEnumerator.

Implements

IEnumerable.GetEnumerator()

See also

Reference

SPPersistedObjectCollection<T> class

SPPersistedObjectCollection<T> members

Microsoft.SharePoint.Administration namespace