ObjectQuery<T>.IEnumerable<T>.GetEnumerator Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns an enumerator that iterates through the results of the query.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

IEnumerator<T> IEnumerable<T>.GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<T>

An IEnumerator<T> object that can be used to iterate through the results.

Calling IEnumerable<T>.GetEnumerator executes the query.

.NET Framework
Available since 3.5
Return to top