WorkflowInstance.OnNotifyUnhandledException(Exception, Activity, String) 方法

定義

由工作流程執行階段呼叫,以通知主機工作流程執行個體中發生未處理的例外狀況。Called by the workflow runtime to notify the host an unhandled exception has occurred in the workflow instance.

protected:
 abstract void OnNotifyUnhandledException(Exception ^ exception, System::Activities::Activity ^ source, System::String ^ sourceInstanceId);
protected abstract void OnNotifyUnhandledException (Exception exception, System.Activities.Activity source, string sourceInstanceId);
abstract member OnNotifyUnhandledException : Exception * System.Activities.Activity * string -> unit

參數

exception
Exception

未處理的例外狀況。The unhandled exception.

source
Activity

擲回例外狀況的活動。The activity that threw the exception.

sourceInstanceId
String

ActivityInstance 的唯一識別碼,代表擲回例外狀況的活動。The unique identifier of the ActivityInstance representing the activity that threw the exception.

適用於