SPBaseCollection.GetEnumerator Method
Gets an enumerator to iterate through the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Overridable Function GetEnumerator As IEnumerator
'Usage
Dim instance As SPBaseCollection
Dim returnValue As IEnumerator
returnValue = instance.GetEnumerator()
public virtual IEnumerator GetEnumerator()
Return Value
Type: System.Collections.IEnumerator
An IEnumerator to iterate through the collection.