ReadOnlyDictionary<TKey,TValue>.KeyCollection.IEnumerable.GetEnumerator 方法

定義

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

傳回

IEnumerator

可用來逐一查看集合的列舉值。An enumerator that can be used to iterate through the collection.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 ReadOnlyDictionary<TKey,TValue>.KeyCollection 執行個體轉換成 IEnumerable 介面時,才能使用這個成員。It can be used only when the ReadOnlyDictionary<TKey,TValue>.KeyCollection instance is cast to an IEnumerable interface.

適用於