Edit

Share via


WorkflowInstance.WorkflowInstanceControl.GetCompletionState Method

Definition

Returns the final ActivityInstanceState of the WorkflowInstance.

Overloads

GetCompletionState()

Returns the final ActivityInstanceState of the WorkflowInstance.

GetCompletionState(Exception)

Returns the final ActivityInstanceState of the WorkflowInstance, including termination exception.

GetCompletionState(IDictionary<String,Object>, Exception)

Returns the final ActivityInstanceState of the WorkflowInstance, including workflow outputs and termination exception.

GetCompletionState()

Returns 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

Returns

One of the enumeration members that describes the state of an activity instance.

Applies to

GetCompletionState(Exception)

Returns 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

Parameters

terminationException
Exception

When 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.

Returns

One of the enumeration members that describes the state of an activity instance.

Applies to

GetCompletionState(IDictionary<String,Object>, Exception)

Returns 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

Parameters

outputs
IDictionary<String,Object>

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

When 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.

Returns

One of the enumeration members that describes the state of an activity instance.

Applies to