ListBox.IntegerCollection.IEnumerable.GetEnumerator 메서드

정의

ListBox.IntegerCollection에서 모든 정수의 열거형을 검색합니다.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

반환

IEnumerator

IEnumerator에 대한 ListBox.IntegerCollection입니다.

구현

설명

이 메서드는 컬렉션의 스냅샷을 포함 하는 열거자를 만듭니다. 열거자; 변경 하 여 컬렉션을 변경할 수 있습니다. 그러나 여러 열거자 동일한 컬렉션에 동시에 액세스할 수 있습니다. 따라서 발생할 수 있습니다 (직접 또는 다른 열거자를 통해) 컬렉션을 변경 Current 또는 MoveNext 예외를 throw 합니다.

동시에 동일한 컬렉션에서 만들어진 두 열거자는 서로 다른 스냅샷을 포함할 수 있습니다.

컬렉션에서 제거도 열거자에서 개체를 제거 합니다.

적용 대상

추가 정보