ConcurrentDictionary<TKey,TValue>.GetEnumerator 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 사전을 수정한 내용이 포함될 수 있습니다.