Share via


ServiceBusOptions.MinMessageBatchSize Property

Definition

Gets or sets the minimum number of messages desired for a batch. This setting applies only to functions that receive multiple messages. This value must be less than MaxMessageBatchSize and is used in conjunction with MaxBatchWaitTime. If MaxBatchWaitTime passes and less than MinMessageBatchSize has been received, the function will be invoked with a partial batch. Default 1.

public int MinMessageBatchSize { get; set; }
member this.MinMessageBatchSize : int with get, set
Public Property MinMessageBatchSize As Integer

Property Value

Remarks

The minimum size is not a strict guarantee, as a partial batch will be dispatched if a full batch cannot be prepared before the MaxBatchWaitTime has elapsed.

Applies to