Dictionary<TKey,TValue>.Enumerator.IDictionaryEnumerator.Value 속성

정의

열거자의 현재 위치에 있는 요소의 값을 가져옵니다.

property System::Object ^ System::Collections::IDictionaryEnumerator::Value { System::Object ^ get(); };
object System.Collections.IDictionaryEnumerator.Value { get; }
object? System.Collections.IDictionaryEnumerator.Value { get; }
member this.System.Collections.IDictionaryEnumerator.Value : obj
 ReadOnly Property Value As Object Implements IDictionaryEnumerator.Value

속성 값

Object

사전에서 열거자의 현재 위치에 있는 요소의 값입니다.

구현

예외

열거자가 컬렉션의 첫 번째 요소 앞 또는 마지막 요소 뒤에 배치되어 있습니다.

설명

IDictionaryEnumerator.Value 는 다음 조건 중에서 정의되지 않습니다.

  • 열거자는 컬렉션의 첫 번째 요소 앞에 배치됩니다. 이는 열거자를 만든 후 또는 메서드가 호출된 IEnumerator.Reset 후에 발생합니다. MoveNext 속성 값을 읽기 전에 열거자를 컬렉션의 첫 번째 요소로 이동하려면 메서드를 IDictionaryEnumerator.Value 호출해야 합니다.

  • 컬렉션의 끝을 나타내고 열거자가 컬렉션의 마지막 요소 뒤 위치에 있는 반환false에 대한 마지막 호출 MoveNext 입니다.

  • 요소의 추가, 수정 또는 삭제 하는 등 컬렉션에서 변경 되어 열거자가 무효화 됩니다.

IDictionaryEnumerator.Value 열거자에 대 한 연속 호출의 위치를 이동 하지 않습니다 IDictionaryEnumerator.Value 될 때까지 동일한 개체를 반환 MoveNext 또는 IEnumerator.Reset 라고 합니다.

적용 대상

추가 정보