GetEnumerator Gets an enumerator for the collection. Compatibility Available as of IDEA version 9.1.1 Syntax GetEnumerator() Return Value An System.Collections.IEnumerator object that can be used to iterate through the collection.