BatchBlock<T> Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| BatchBlock<T>(Int32) |
Initialise un nouveau BatchBlock<T> avec la taille de lot spécifiée. |
| BatchBlock<T>(Int32, GroupingDataflowBlockOptions) |
Initialise une nouvelle BatchBlock<T> avec la taille de lot spécifiée, l’option de refus et les options de bloc spécifiées. |
BatchBlock<T>(Int32)
- Source:
- BatchBlock.cs
- Source:
- BatchBlock.cs
- Source:
- BatchBlock.cs
- Source:
- BatchBlock.cs
- Source:
- BatchBlock.cs
- Source:
- BatchBlock.cs
- Source:
- BatchBlock.cs
Initialise un nouveau BatchBlock<T> avec la taille de lot spécifiée.
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)
Paramètres
- batchSize
- Int32
Nombre d’éléments à regrouper dans un lot.
Exceptions
Le batchSize doit être positif.
S’applique à
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
Initialise une nouvelle BatchBlock<T> avec la taille de lot spécifiée, l’option de refus et les options de bloc spécifiées.
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)
Paramètres
- batchSize
- Int32
Nombre d’éléments à regrouper dans un lot.
- dataflowBlockOptions
- GroupingDataflowBlockOptions
Options avec lesquelles configurer ce BatchBlock<T>.
Exceptions
Le batchSize doit être positif.
- ou -
La batchSize valeur doit être inférieure à la valeur de l’option BoundedCapacity si une valeur non par défaut a été définie.
dataflowBlockOptions a la valeur null.