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>

此方法返回时,outputs 包含由工作流的 Out 自变量组成的字典,由自变量名称进行键控。 此参数未经初始化即被传递。

terminationException
Exception

此方法返回时,terminationException 包含导致 WorkflowInstance 终止的异常,或者,如果 WorkflowInstance 未终止,则为 null 。 此参数未经初始化即被传递。

返回

描述活动实例的状态的枚举成员之一。

适用于