ReadOnlyDictionary<TKey,TValue>.KeyCollection.IEnumerable.GetEnumerator ReadOnlyDictionary<TKey,TValue>.KeyCollection.IEnumerable.GetEnumerator ReadOnlyDictionary<TKey,TValue>.KeyCollection.IEnumerable.GetEnumerator Method

定义

返回一个循环访问集合的枚举器。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 ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

返回

用于循环访问集合的枚举数。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.

适用于