共用方式為


WorkflowInstance.WorkflowInstanceControl.GetCompletionState 方法

定義

多載

GetCompletionState()

傳回 ActivityInstanceState 的最終 WorkflowInstance

GetCompletionState(Exception)

傳回 ActivityInstanceState 的最終 WorkflowInstance,包括終止例外狀況。

GetCompletionState(IDictionary<String,Object>, Exception)

傳回 ActivityInstanceState 的最終 WorkflowInstance,包括工作流程輸出和終止例外狀況。

GetCompletionState()

public:
 System::Activities::ActivityInstanceState GetCompletionState();
public System.Activities.ActivityInstanceState GetCompletionState ();
member this.GetCompletionState : unit -> System.Activities.ActivityInstanceState
Public Function GetCompletionState () As ActivityInstanceState

傳回

其中一個列舉成員,這個成員會描述活動執行個體的狀態。

適用於

GetCompletionState(Exception)

傳回 ActivityInstanceState 的最終 WorkflowInstance,包括終止例外狀況。

public:
 System::Activities::ActivityInstanceState GetCompletionState([Runtime::InteropServices::Out] Exception ^ % terminationException);
public System.Activities.ActivityInstanceState GetCompletionState (out Exception terminationException);
member this.GetCompletionState : Exception -> System.Activities.ActivityInstanceState
Public Function GetCompletionState (ByRef terminationException As Exception) As ActivityInstanceState

參數

terminationException
Exception

這個方法傳回時,terminationException 會包含導致 WorkflowInstance 終止的例外狀況,若 WorkflowInstance 並未終止,則會包含 null。 這個參數會以未初始化的狀態傳遞。

傳回

其中一個列舉成員,這個成員會描述活動執行個體的狀態。

適用於

GetCompletionState(IDictionary<String,Object>, Exception)

傳回 ActivityInstanceState 的最終 WorkflowInstance,包括工作流程輸出和終止例外狀況。

public:
 System::Activities::ActivityInstanceState GetCompletionState([Runtime::InteropServices::Out] System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ % outputs, [Runtime::InteropServices::Out] Exception ^ % terminationException);
public System.Activities.ActivityInstanceState GetCompletionState (out System.Collections.Generic.IDictionary<string,object> outputs, out Exception terminationException);
member this.GetCompletionState : IDictionary * Exception -> System.Activities.ActivityInstanceState
Public Function GetCompletionState (ByRef outputs As IDictionary(Of String, Object), ByRef terminationException As Exception) As ActivityInstanceState

參數

outputs
IDictionary<String,Object>

這個方法傳回時,outputsOut會包含工作流程之 引數的字典 (依引數名稱做為索引鍵)。 這個參數會以未初始化的狀態傳遞。

terminationException
Exception

這個方法傳回時,terminationException 會包含導致 WorkflowInstance 終止的例外狀況,若 WorkflowInstance 並未終止,則會包含 null。 這個參數會以未初始化的狀態傳遞。

傳回

其中一個列舉成員,這個成員會描述活動執行個體的狀態。

適用於