BlockingCollection<T> コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
BlockingCollection<T> クラスの新しいインスタンスを、上限なしで初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| BlockingCollection<T>() |
BlockingCollection<T> クラスの新しいインスタンスを、上限なしで初期化します。 |
| BlockingCollection<T>(IProducerConsumerCollection<T>) |
指定されたBlockingCollection<T>を基になるデータ ストアとして使用して、上限を指定せずに、IProducerConsumerCollection<T> クラスの新しいインスタンスを初期化します。 |
| BlockingCollection<T>(Int32) |
指定した上限を使用して、 BlockingCollection<T> クラスの新しいインスタンスを初期化します。 |
| BlockingCollection<T>(IProducerConsumerCollection<T>, Int32) |
指定した上限を使用し、指定したBlockingCollection<T>を基になるデータ ストアとして使用して、IProducerConsumerCollection<T> クラスの新しいインスタンスを初期化します。 |
BlockingCollection<T>()
BlockingCollection<T> クラスの新しいインスタンスを、上限なしで初期化します。
public:
BlockingCollection();
public BlockingCollection();
Public Sub New ()
注釈
既定の基になるコレクションは ConcurrentQueue<T> オブジェクトであり、先入れ先出し (FIFO) 動作を提供します。
こちらもご覧ください
適用対象
BlockingCollection<T>(IProducerConsumerCollection<T>)
指定されたBlockingCollection<T>を基になるデータ ストアとして使用して、上限を指定せずに、IProducerConsumerCollection<T> クラスの新しいインスタンスを初期化します。
public:
BlockingCollection(System::Collections::Concurrent::IProducerConsumerCollection<T> ^ collection);
public BlockingCollection(System.Collections.Concurrent.IProducerConsumerCollection<T> collection);
new System.Collections.Concurrent.BlockingCollection<'T> : System.Collections.Concurrent.IProducerConsumerCollection<'T> -> System.Collections.Concurrent.BlockingCollection<'T>
Public Sub New (collection As IProducerConsumerCollection(Of T))
パラメーター
- collection
- IProducerConsumerCollection<T>
基になるデータ ストアとして使用するコレクション。
例外
collection引数は null です。
こちらもご覧ください
適用対象
BlockingCollection<T>(Int32)
指定した上限を使用して、 BlockingCollection<T> クラスの新しいインスタンスを初期化します。
public:
BlockingCollection(int boundedCapacity);
public BlockingCollection(int boundedCapacity);
new System.Collections.Concurrent.BlockingCollection<'T> : int -> System.Collections.Concurrent.BlockingCollection<'T>
Public Sub New (boundedCapacity As Integer)
パラメーター
- boundedCapacity
- Int32
コレクションの境界付きサイズ。
例外
boundedCapacityは正の値ではありません。
注釈
既定の基になるコレクションは ConcurrentQueue<T>です。
こちらもご覧ください
適用対象
BlockingCollection<T>(IProducerConsumerCollection<T>, Int32)
指定した上限を使用し、指定したBlockingCollection<T>を基になるデータ ストアとして使用して、IProducerConsumerCollection<T> クラスの新しいインスタンスを初期化します。
public:
BlockingCollection(System::Collections::Concurrent::IProducerConsumerCollection<T> ^ collection, int boundedCapacity);
public BlockingCollection(System.Collections.Concurrent.IProducerConsumerCollection<T> collection, int boundedCapacity);
new System.Collections.Concurrent.BlockingCollection<'T> : System.Collections.Concurrent.IProducerConsumerCollection<'T> * int -> System.Collections.Concurrent.BlockingCollection<'T>
Public Sub New (collection As IProducerConsumerCollection(Of T), boundedCapacity As Integer)
パラメーター
- collection
- IProducerConsumerCollection<T>
基になるデータ ストアとして使用するコレクション。
- boundedCapacity
- Int32
コレクションの境界付きサイズ。
例外
collection引数は null です。
boundedCapacityは正の値ではありません。
指定された collection には、 boundedCapacityで許可されている値よりも多くの値が含まれています。