Share via


Metodo ObjectQuery<T>.IEnumerable<T>.GetEnumerator

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Restituisce un oggetto IEnumerator<T> che, se enumerato, eseguirà la query SQL specificata nel database.

Spazio dei nomi:  System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetEnumerator As IEnumerator(Of T)
    Implements IEnumerable(Of T).GetEnumerator
'Utilizzo
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.

Valore restituito

Tipo: System.Collections.Generic.IEnumerator<T>
Risultati di query.

Implements

IEnumerable<T>.GetEnumerator()

Vedere anche

Riferimento

ObjectQuery<T> Classe

Spazio dei nomi System.Data.Entity.Core.Objects