Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

BatchBlock<T> Constructors

Definition

Namespace:
System.Threading.Tasks.Dataflow
Assembly:
System.Threading.Tasks.Dataflow.dll
Package:
System.Threading.Tasks.Dataflow v11.0.0-preview.5.26302.115

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
BatchBlock<T>(Int32)

Initializes a new BatchBlock<T> with the specified batch size.

BatchBlock<T>(Int32, GroupingDataflowBlockOptions)

Initializes a new BatchBlock<T> with the specified batch size, declining option, and block options.

BatchBlock<T>(Int32)

Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs

Initializes a new BatchBlock<T> with the specified batch size.

public:
 BatchBlock(int batchSize);
public BatchBlock(int batchSize);
new System.Threading.Tasks.Dataflow.BatchBlock<'T> : int -> System.Threading.Tasks.Dataflow.BatchBlock<'T>
Public Sub New (batchSize As Integer)

Parameters

batchSize
Int32

The number of items to group into a batch.

Exceptions

The batchSize must be positive.

Applies to

BatchBlock<T>(Int32, GroupingDataflowBlockOptions)

Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs
Source:
BatchBlock.cs

Initializes a new BatchBlock<T> with the specified batch size, declining option, and block options.

public:
 BatchBlock(int batchSize, System::Threading::Tasks::Dataflow::GroupingDataflowBlockOptions ^ dataflowBlockOptions);
public BatchBlock(int batchSize, System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.BatchBlock<'T> : int * System.Threading.Tasks.Dataflow.GroupingDataflowBlockOptions -> System.Threading.Tasks.Dataflow.BatchBlock<'T>
Public Sub New (batchSize As Integer, dataflowBlockOptions As GroupingDataflowBlockOptions)

Parameters

batchSize
Int32

The number of items to group into a batch.

dataflowBlockOptions
GroupingDataflowBlockOptions

The options with which to configure this BatchBlock<T>.

Exceptions

The batchSize must be positive.

-or-

The batchSize must be smaller than the value of the BoundedCapacity option if a non-default value has been set.

The dataflowBlockOptions is null.

Applies to


Feedback

Was this page helpful?