IAsyncErrorNotify 介面

定義

Activity 物件所送出的非同步批次工作上實作錯誤捕捉。

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
[<System.Runtime.InteropServices.Guid("FE6777FB-A674-4177-8F32-6D707E113484")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IAsyncErrorNotify = interface
Public Interface IAsyncErrorNotify
屬性

備註

IAsyncErrorNotify 是用來在物件所 Activity 提交的異步批次工作上實作錯誤截獲。 在物件上呼叫 中AsynchronousCallActivity傳遞的 對象上實作這個介面。 AsynchronousCall 會判斷批次工作中是否發生異步執行錯誤。 此介面可讓您收到異步批次工作中發生的錯誤,而且進程將會在任何無法復原的錯誤上終止 (失敗) 。

如需failfast的相關信息,請參閱 MSDN 平臺 SDK 中的主題。

方法

OnError(Int32)

處理非同步批次工作的錯誤。

適用於