TabControl.TabPageCollection.GetEnumerator 메서드

정의

컬렉션에 있는 모든 탭 페이지의 열거형을 반환합니다.

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

반품

에 대한 항목 IEnumerator 입니다 TabControl.TabPageCollection.

구현

설명

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

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

열거자에서 개체를 제거하면 컬렉션에서도 개체가 제거됩니다.

적용 대상

추가 정보