EntityCollection<TEntity>.GetEnumerator 方法

定義

傳回可用來逐一查看集合中物件的列舉值。Returns an enumerator that is used to iterate through the objects in the collection.

public:
 virtual System::Collections::Generic::IEnumerator<TEntity> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<TEntity> GetEnumerator ();
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<'Entity (requires 'Entity : null and 'Entity :> System.Data.Objects.DataClasses.IEntityWithRelationships)>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<'Entity (requires 'Entity : null)>
Public Function GetEnumerator () As IEnumerator(Of TEntity)

傳回

IEnumerator<TEntity>

IEnumerator,它會逐一查看 EntityCollection<TEntity> 所快取的值集合。An IEnumerator that iterates through the set of values cached by EntityCollection<TEntity>.

實作

適用於