你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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