共用方式為


ReadOnlyDictionary<TKey,TValue>.GetEnumerator 方法

定義

傳回在 ReadOnlyDictionary<TKey,TValue> 中逐一查看的列舉值。

public:
 virtual System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey,TValue>> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<'Key, 'Value>>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<'Key, 'Value>>
Public Function GetEnumerator () As IEnumerator(Of KeyValuePair(Of TKey, TValue))

傳回

IEnumerator<KeyValuePair<TKey,TValue>>

可用來逐一查看集合的列舉值。

實作

適用於