共用方式為


ServiceBusProcessor.AutoCompleteMessages Property

Definition

Gets a value that indicates whether the processor should automatically complete messages after the message handler has completed processing. If the message handler triggers an exception, the message will not be automatically completed.

public virtual bool AutoCompleteMessages { get; }
member this.AutoCompleteMessages : bool
Public Overridable ReadOnly Property AutoCompleteMessages As Boolean

Property Value

The option to auto complete messages is specified using AutoCompleteMessages and has a default value of true.

Remarks

If the message handler triggers an exception and did not settle the message, then the message will be automatically abandoned, irrespective of AutoCompleteMessages.

Applies to