ObjectQuery<T>.IEnumerable<T>.GetEnumerator-Methode
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Gibt einen IEnumerator<T> zurück, der bei der Aufzählung die angegebene SQL-Abfrage für die Datenbank ausführt.
Namespace: System.Data.Entity.Core.Objects
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetEnumerator As IEnumerator(Of T)
Implements IEnumerable(Of T).GetEnumerator
'Usage
Dim instance As ObjectQuery
Dim returnValue As IEnumerator(Of T)
returnValue = CType(instance, IEnumerable(Of T)).GetEnumerator()
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
IEnumerator<T> IEnumerable<T>.GetEnumerator()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual IEnumerator<T>^ GetEnumerator() sealed = IEnumerable<T>::GetEnumerator
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract GetEnumerator : unit -> IEnumerator<'T>
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override GetEnumerator : unit -> IEnumerator<'T>
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Rückgabewert
Typ: System.Collections.Generic.IEnumerator<T>
Die Abfrageergebnisse.
Implements
IEnumerable<T>.GetEnumerator()