ConcurrentDictionary<TKey,TValue>.IEnumerable.GetEnumerator ConcurrentDictionary<TKey,TValue>.IEnumerable.GetEnumerator ConcurrentDictionary<TKey,TValue>.IEnumerable.GetEnumerator Method

定義

傳回在 ConcurrentDictionary<TKey,TValue> 中逐一查看的列舉值。Returns an enumerator that iterates through the ConcurrentDictionary<TKey,TValue>.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

傳回

實作

備註

傳回從字典的列舉值安全地使用同時讀取和寫入,字典中,但它不代表目前的時間的快照集的字典。The enumerator returned from the dictionary is safe to use concurrently with reads and writes to the dictionary, however it does not represent a moment-in-time snapshot of the dictionary. 透過列舉值所公開的內容可能會包含在字典之後所做的修改GetEnumerator呼叫。The contents exposed through the enumerator may contain modifications made to the dictionary after GetEnumerator was called.

適用於

另請參閱