ListBox.IntegerCollection.IEnumerable.GetEnumerator Metoda

Definicja

Pobiera wyliczenie wszystkich liczb całkowitych w elemecie 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

Zwraca

IEnumerator

Element IEnumerator dla elementu ListBox.IntegerCollection.

Implementuje

Uwagi

Ta metoda tworzy moduł wyliczający zawierający migawkę kolekcji. Kolekcję można zmienić, zmieniając moduł wyliczający; jednak wiele modułów wyliczanych może jednocześnie uzyskiwać dostęp do tej samej kolekcji. Zmiana kolekcji (bezpośrednio lub za pośrednictwem innego modułu wyliczającego) może spowodować Current lub MoveNext zgłosić wyjątek.

Dwa moduły wyliczane utworzone na podstawie tej samej kolekcji jednocześnie mogą zawierać różne migawki.

Usunięcie obiektów z modułu wyliczającego spowoduje również usunięcie ich z kolekcji.

Dotyczy

Zobacz też