Condividi tramite


Metodo EntityCollection<TEntity>.IEnumerable.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 enumeratore utilizzato per scorrere il set di valori memorizzati nella cache da EntityCollection<TEntity>.

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

Sintassi

'Dichiarazione
Private Function GetEnumerator As IEnumerator 
    Implements IEnumerable.GetEnumerator
'Utilizzo
Dim instance As EntityCollection 
Dim returnValue As IEnumerator 

returnValue = CType(instance, IEnumerable).GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
private:
virtual IEnumerator^ GetEnumerator() sealed = IEnumerable::GetEnumerator
private abstract GetEnumerator : unit -> IEnumerator  
private override GetEnumerator : unit -> IEnumerator
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Valore restituito

Tipo: System.Collections.IEnumerator
Oggetto IEnumerator che scorre il set di valori memorizzati nella cache da EntityCollection<TEntity>.

Implements

IEnumerable.GetEnumerator()

Vedere anche

Riferimento

EntityCollection<TEntity> Classe

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