WorkflowInstance.WorkflowInstanceControl.GetCompletionState 方法

定义

返回 ActivityInstanceState 的最终 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance.

重载

GetCompletionState()

返回 ActivityInstanceState 的最终 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance.

GetCompletionState(Exception)

返回 ActivityInstanceState(包括终止异常)的最终 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance, including termination exception.

GetCompletionState(IDictionary<String,Object>, Exception)

返回 ActivityInstanceState(包括工作流输出和终止异常)的最终 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance, including workflow outputs and termination exception.

GetCompletionState()

返回 ActivityInstanceState 的最终 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance.

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

返回

ActivityInstanceState

描述活动实例的状态的枚举成员之一。One of the enumeration members that describes the state of an activity instance.

适用于

GetCompletionState(Exception)

返回 ActivityInstanceState(包括终止异常)的最终 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance, including termination exception.

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 未终止,则为 nullWhen this method returns, terminationException contains the exception that caused the WorkflowInstance to terminate, or null if the WorkflowInstance did not terminate. 此参数未经初始化即被传递。This parameter is passed uninitialized.

返回

ActivityInstanceState

描述活动实例的状态的枚举成员之一。One of the enumeration members that describes the state of an activity instance.

适用于

GetCompletionState(IDictionary<String,Object>, Exception)

返回 ActivityInstanceState(包括工作流输出和终止异常)的最终 WorkflowInstanceReturns the final ActivityInstanceState of the WorkflowInstance, including workflow outputs and termination exception.

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 自变量组成的字典,由自变量名称进行键控。When this method returns, outputs contains a dictionary of Out arguments of the workflow, keyed by argument name. 此参数未经初始化即被传递。This parameter is passed uninitialized.

terminationException
Exception

此方法返回时,terminationException 包含导致 WorkflowInstance 终止的异常,或者,如果 WorkflowInstance 未终止,则为 nullWhen this method returns, terminationException contains the exception that caused the WorkflowInstance to terminate, or null if the WorkflowInstance did not terminate. 此参数未经初始化即被传递。This parameter is passed uninitialized.

返回

ActivityInstanceState

描述活动实例的状态的枚举成员之一。One of the enumeration members that describes the state of an activity instance.

适用于