BatchedJoinBlock<T1,T2> 构造函数
定义
重载
| BatchedJoinBlock<T1,T2>(Int32) |
初始化指定配置的新 BatchedJoinBlock<T1,T2>。Initializes a new BatchedJoinBlock<T1,T2> with the specified configuration. |
| BatchedJoinBlock<T1,T2>(Int32, GroupingDataflowBlockOptions) |
初始化指定配置的新 BatchedJoinBlock<T1,T2>。Initializes a new BatchedJoinBlock<T1,T2> with the specified configuration. |
BatchedJoinBlock<T1,T2>(Int32)
初始化指定配置的新 BatchedJoinBlock<T1,T2>。Initializes a new BatchedJoinBlock<T1,T2> with the specified configuration.
public:
BatchedJoinBlock(int batchSize);
public BatchedJoinBlock (int batchSize);
new System.Threading.Tasks.Dataflow.BatchedJoinBlock<'T1, 'T2> : int -> System.Threading.Tasks.Dataflow.BatchedJoinBlock<'T1, 'T2>
Public Sub New (batchSize As Integer)
参数
- batchSize
- Int32
分组为批的项数。The number of items to group into a batch.
例外
batchSize 必须是正数。The batchSize must be positive.
适用于
BatchedJoinBlock<T1,T2>(Int32, GroupingDataflowBlockOptions)
初始化指定配置的新 BatchedJoinBlock<T1,T2>。Initializes a new BatchedJoinBlock<T1,T2> with the specified configuration.
public:
BatchedJoinBlock(int batchSize, System::Threading::Tasks::Dataflow::GroupingDataflowBlockOptions ^ dataflowBlockOptions);
public BatchedJoinBlock (int batchSize, System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.BatchedJoinBlock<'T1, 'T2> : int * System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions -> System.Threading.Tasks.Dataflow.BatchedJoinBlock<'T1, 'T2>
Public Sub New (batchSize As Integer, dataflowBlockOptions As GroupingDataflowBlockOptions)
参数
- batchSize
- Int32
分组为批的项数。The number of items to group into a batch.
- dataflowBlockOptions
- GroupingDataflowBlockOptions
用来配置此 BatchedJoinBlock<T1,T2>的选项。The options with which to configure this BatchedJoinBlock<T1,T2>.
例外
dataflowBlockOptions 为 null。dataflowBlockOptions is null.
batchSize 小于一。batchSize is less than one.