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

ServiceBusProcessor.OnProcessErrorAsync(ProcessErrorEventArgs) Method

Definition

Invokes the error event handler when an error has occurred during processing. This method can be overridden to raise an event manually for testing purposes.

protected internal virtual System.Threading.Tasks.Task OnProcessErrorAsync(Azure.Messaging.ServiceBus.ProcessErrorEventArgs args);
abstract member OnProcessErrorAsync : Azure.Messaging.ServiceBus.ProcessErrorEventArgs -> System.Threading.Tasks.Task
override this.OnProcessErrorAsync : Azure.Messaging.ServiceBus.ProcessErrorEventArgs -> System.Threading.Tasks.Task
Protected Friend Overridable Function OnProcessErrorAsync (args As ProcessErrorEventArgs) As Task

Parameters

args
ProcessErrorEventArgs

The event args containing information related to the error.

Returns

Applies to