BlockingCollection<T>.IEnumerable<T>.GetEnumerator Metoda

Definicja

Udostępnia element IEnumerator<T> dla elementów w kolekcji.

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

Zwraca

Element IEnumerator<T> dla elementów w kolekcji.

Implementuje

Wyjątki

Uwagi

W przeciwieństwie do GetConsumingEnumerablemetody BlockingCollection<T>.IEnumerable<T>.GetEnumerator zwraca standardowy moduł wyliczający, który nie modyfikuje bazowej kolekcji. Jeśli inne wątki dodają lub usuwają elementy współbieżnie po wywołaniu modułu GetEnumerator, elementy zwrócone przez moduł wyliczający mogą nie reprezentować bieżącego stanu kolekcji.

Dotyczy

Zobacz też