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

GetEnumerator()

public IEnumerator GetEnumerator();
Public Function GetEnumerator() As IEnumerator

Return Value

The return value is an IEnumerator that represents the collection.