This documentation is archived and is not being maintained.
System.Collections.Concurrent Namespace
Visual Studio 2010
The System.Collections.Concurrent namespace provides several thread-safe collection classes that should be used in place of the corresponding types in the System.Collections and System.Collections.Generic namespaces whenever multiple threads are accessing the collection concurrently.
| Class | Description | |
|---|---|---|
![]() | BlockingCollection(Of T) | Provides blocking and bounding capabilities for thread-safe collections that implement IProducerConsumerCollection(Of T). |
![]() | ConcurrentBag(Of T) | Represents a thread-safe, unordered collection of objects. |
![]() | ConcurrentDictionary(Of TKey, TValue) | Represents a thread-safe collection of key-value pairs that can be accessed by multiple threads concurrently. |
![]() | ConcurrentQueue(Of T) | Represents a thread-safe first in-first out (FIFO) collection. |
![]() | ConcurrentStack(Of T) | Represents a thread-safe last in-first out (LIFO) collection. |
![]() | OrderablePartitioner(Of TSource) | Represents a particular manner of splitting an orderable data source into multiple partitions. |
![]() | Partitioner | Provides common partitioning strategies for arrays, lists, and enumerables. |
![]() | Partitioner(Of TSource) | Represents a particular manner of splitting a data source into multiple partitions. |
| Interface | Description | |
|---|---|---|
![]() | IProducerConsumerCollection(Of T) | Defines methods to manipulate thread-safe collections intended for producer/consumer usage. This interface provides a unified representation for producer/consumer collections so that higher level abstractions such as System.Collections.Concurrent.BlockingCollection(Of T) can use the collection as the underlying storage mechanism. |
Show:
