System.Collections.Concurrent.BlockingCollection<T> Members

The members of System.Collections.Concurrent.BlockingCollection<T> are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Collections.Concurrent.BlockingCollection`1 class without an upper-bound.

Documentation for this section has not yet been entered.

Initializes a new instance of the System.Collections.Concurrent.BlockingCollection`1 class with the specified upper-bound.

Documentation for this section has not yet been entered.

Public Properties

[read-only]
BoundedCapacityint.

Gets the bounded capacity of this System.Collections.Concurrent.BlockingCollection`1 instance.

[read-only]
Countint.

Gets the number of items contained in the System.Collections.Concurrent.BlockingCollection`1.

[read-only]
IsAddingCompletedbool.

Gets whether this System.Collections.Concurrent.BlockingCollection`1 has been marked as complete for adding.

[read-only]
IsCompletedbool.

Gets whether this System.Collections.Concurrent.BlockingCollection`1 has been marked as complete for adding and is empty.

Public Methods

Add(T)
Documentation for this section has not yet been entered.
Add(T, System.Threading.CancellationToken)
Documentation for this section has not yet been entered.
static
AddToAny(BlockingCollection<T>[], T) : int
Documentation for this section has not yet been entered.
static
AddToAny(BlockingCollection<T>[], T, System.Threading.CancellationToken) : int
Documentation for this section has not yet been entered.
CompleteAdding()

Marks the System.Collections.Concurrent.BlockingCollection`1 instances as not accepting any more additions.

CopyTo(T[], int)
Documentation for this section has not yet been entered.
Dispose()

Releases all resources used by the current instance of the System.Collections.Concurrent.BlockingCollection`1 class.

GetConsumingEnumerable() : IEnumerable<T>

Provides a consuming IEnumerator`1 for items in the collection.

GetConsumingEnumerable(System.Threading.CancellationToken) : IEnumerable<T>

Provides a consuming IEnumerable`1 for items in the collection.

Take() : T

Removes an item from the System.Collections.Concurrent.BlockingCollection`1.

Take(System.Threading.CancellationToken) : T

Removes an item from the System.Collections.Concurrent.BlockingCollection`1.

static
TakeFromAny(BlockingCollection<T>[], out T) : int
Documentation for this section has not yet been entered.
static
TakeFromAny(BlockingCollection<T>[], out T, System.Threading.CancellationToken) : int
Documentation for this section has not yet been entered.
ToArray() : T[]

Copies the items from the System.Collections.Concurrent.BlockingCollection`1 instance into a new array.

TryAdd(T) : bool
Documentation for this section has not yet been entered.
TryAdd(T, int) : bool
Documentation for this section has not yet been entered.
TryAdd(T, TimeSpan) : bool
Documentation for this section has not yet been entered.
TryAdd(T, int, System.Threading.CancellationToken) : bool
Documentation for this section has not yet been entered.
static
TryAddToAny(BlockingCollection<T>[], T) : int
Documentation for this section has not yet been entered.
static
TryAddToAny(BlockingCollection<T>[], T, int) : int
Documentation for this section has not yet been entered.
static
TryAddToAny(BlockingCollection<T>[], T, TimeSpan) : int
Documentation for this section has not yet been entered.
static
TryAddToAny(BlockingCollection<T>[], T, int, System.Threading.CancellationToken) : int
Documentation for this section has not yet been entered.
TryTake(out T) : bool
Documentation for this section has not yet been entered.
TryTake(out T, int) : bool
Documentation for this section has not yet been entered.
TryTake(out T, TimeSpan) : bool
Documentation for this section has not yet been entered.
TryTake(out T, int, System.Threading.CancellationToken) : bool
Documentation for this section has not yet been entered.
static
TryTakeFromAny(BlockingCollection<T>[], out T) : int
Documentation for this section has not yet been entered.
static
TryTakeFromAny(BlockingCollection<T>[], out T, int) : int
Documentation for this section has not yet been entered.
static
TryTakeFromAny(BlockingCollection<T>[], out T, TimeSpan) : int
Documentation for this section has not yet been entered.
static
TryTakeFromAny(BlockingCollection<T>[], out T, int, System.Threading.CancellationToken) : int
Documentation for this section has not yet been entered.

Protected Methods

Dispose(bool)

Releases resources used by the System.Collections.Concurrent.BlockingCollection`1 instance.

Explicitly Implemented Interface Members

ICollection.CopyTo

Copies all of the items in the System.Collections.Concurrent.BlockingCollection`1 instance to a compatible one-dimensional array, starting at the specified index of the target array.

IEnumerable<T>.GetEnumeratorDocumentation for this section has not yet been entered.
IEnumerable.GetEnumerator

Provides an IEnumerator for items in the collection.

[read-only]
ICollection.IsSynchronizedbool.

Gets a value indicating whether access to the ICollection is synchronized.

[read-only]
ICollection.SyncRootobject.

Gets an object that can be used to synchronize access to the ICollection. This property is not supported.