Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IEnumerable.GetEnumerator Method

BlockingCollection<T>.IEnumerable.GetEnumerator Method

.NET Framework 4.6 and 4.5

Provides an IEnumerator for items in the collection.

Namespace:  System.Collections.Concurrent
Assemblies:   System.Collections.Concurrent (in System.Collections.Concurrent.dll)
  System (in System.dll)

IEnumerator IEnumerable.GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
An IEnumerator for the items in the collection.

Implements

IEnumerable.GetEnumerator()

ExceptionCondition
ObjectDisposedException

The BlockingCollection<T> has been disposed.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft