IAsyncErrorNotify 接口

定义

在由 Activity 对象提交的异步批处理工作上实现错误捕获。Implements error trapping on the asynchronous batch work that is submitted by the Activity object.

public interface class IAsyncErrorNotify
[System.Runtime.InteropServices.Guid("FE6777FB-A674-4177-8F32-6D707E113484")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IAsyncErrorNotify
type IAsyncErrorNotify = interface
Public Interface IAsyncErrorNotify
属性

注解

IAsyncErrorNotify用于对由Activity对象提交的异步批处理工作实现错误捕获。IAsyncErrorNotify is used to implement error trapping on the asynchronous batch work that is submitted by the Activity object. 在对象AsynchronousCall Activity上实现对的调用中传递的此接口。Implement this interface on the object that is passed in the call to AsynchronousCall on the Activity object. AsynchronousCall确定批处理工作中是否发生了异步运行的错误。AsynchronousCall determines if an error occurred in batch work that is running asynchronously. 此接口使你可以收到异步批处理工作中发生的错误的通知, 并且进程将在任何无法恢复的错误上终止 (failfast)。This interface enables you to be informed of errors that occur in asynchronous batch work, and the process will terminate (failfast) on any unrecoverable error.

有关 failfast 的信息, 请参阅 MSDN 中的平台 SDK 中的 "故障隔离和 Failfast 策略" 主题。For information about failfast, see the "Fault Isolation and Failfast Policy" topic in the Platform SDK in MSDN.

方法

OnError(Int32)

处理异步批处理工作的错误。Handles errors for asynchronous batch work.

适用于