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

정의

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

property System::Collections::DictionaryEntry System::Collections::IDictionaryEnumerator::Entry { System::Collections::DictionaryEntry get(); };
System.Collections.DictionaryEntry System.Collections.IDictionaryEnumerator.Entry { get; }
member this.System.Collections.IDictionaryEnumerator.Entry : System.Collections.DictionaryEntry
 ReadOnly Property Entry As DictionaryEntry Implements IDictionaryEnumerator.Entry

속성 값

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

구현

예외

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

설명

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

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

  • 반환false된 에 대한 MoveNext 마지막 호출로, 컬렉션의 끝을 나타내고 열거자가 컬렉션의 마지막 요소 다음에 배치됩니다.

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

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

적용 대상

추가 정보