Note

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

Access to this page requires authorization. You can try .

DataflowBlockOptions.MaxMessagesPerTask Property

Definition

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

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.

Gets or sets the maximum number of messages that may be processed per task.

public:
 property int MaxMessagesPerTask { int get(); void set(int value); };
public int MaxMessagesPerTask { get; set; }
member this.MaxMessagesPerTask : int with get, set
Public Property MaxMessagesPerTask As Integer

Property Value

The maximum number of messages. The default is -1, which indicates an unlimited number of messages.

Applies to


Feedback

Was this page helpful?