WorkflowApplicationAbortedEventArgs 類別

定義

提供關於中止工作流程實例的資料。

public ref class WorkflowApplicationAbortedEventArgs : System::Activities::WorkflowApplicationEventArgs
public class WorkflowApplicationAbortedEventArgs : System.Activities.WorkflowApplicationEventArgs
type WorkflowApplicationAbortedEventArgs = class
    inherit WorkflowApplicationEventArgs
Public Class WorkflowApplicationAbortedEventArgs
Inherits WorkflowApplicationEventArgs
繼承
WorkflowApplicationAbortedEventArgs

範例

以下程式碼範例檢查傳入WorkflowApplicationAbortedEventArgs處理Aborted程序的 ,WorkflowApplication並顯示為何工作流程中止的資訊。

wfApp.Aborted = delegate(WorkflowApplicationAbortedEventArgs e)
{
    // Display the exception that caused the workflow
    // to abort.
    Console.WriteLine("Workflow {0} Aborted.", e.InstanceId);
    Console.WriteLine("Exception: {0}\n{1}",
        e.Reason.GetType().FullName,
        e.Reason.Message);
};

備註

當由 所 WorkflowApplication 託管的工作流程中止時, Aborted 會呼叫處理器,而 Completed 不會呼叫處理器。

屬性

名稱 Description
InstanceId

工作流程實例的唯一識別碼。

(繼承來源 WorkflowApplicationEventArgs)
Reason

會獲得例外,提供為何工作流程實例被中止的資訊。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetInstanceExtensions<T>()

取得指定類型的擴充集合。

(繼承來源 WorkflowApplicationEventArgs)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於