ConcurrentDictionary<TKey,TValue>.IEnumerable.GetEnumerator 方法

定義

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

 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

ConcurrentDictionary<TKey,TValue> 的列舉程式。

實作

備註

從字典傳回的列舉值可以安全地與字典的讀取和寫入搭配使用,不過它並不代表字典的即時快照集。 透過列舉值公開的內容可能包含在呼叫 之後 GetEnumerator 對字典所做的修改。

適用於

另請參閱