ConcurrentDictionary<TKey,TValue>.GetEnumerator 메서드

정의

ConcurrentDictionary<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))
Public Iterator Overridable NotOverridable Function GetEnumerator () As IEnumerator(Of KeyValuePair(Of TKey, TValue))

반환

IEnumerator<KeyValuePair<TKey,TValue>>

ConcurrentDictionary<TKey,TValue>에 대한 열거자입니다.

구현

설명

사전에서 반환된 열거자는 사전에 대한 읽기 및 쓰기와 함께 동시에 사용하는 것이 안전합니다. 그러나 사전의 순간 스냅샷을 나타내지는 않습니다. 열거자를 통해 노출되는 콘텐츠에는 호출된 후 GetEnumerator 사전을 수정한 내용이 포함될 수 있습니다.

적용 대상

추가 정보