WorkflowInstance.WorkflowInstanceControl.Abort Method

Definition

Aborts the WorkflowInstance.

Overloads

Abort()

Aborts the WorkflowInstance.

Abort(Exception)

Aborts the WorkflowInstance using the specified exception.

Remarks

Once Abort is called, most WorkflowInstance.WorkflowInstanceControl APIs except Abort throw an InvalidOperationException.

Abort()

Aborts the WorkflowInstance.

C#
public void Abort();

Remarks

Once Abort is called, most WorkflowInstance.WorkflowInstanceControl APIs except Abort throw an InvalidOperationException.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Abort(Exception)

Aborts the WorkflowInstance using the specified exception.

C#
public void Abort(Exception reason);

Parameters

reason
Exception

The reason for aborting the WorkflowInstance.

Remarks

Once Abort is called, most WorkflowInstance.WorkflowInstanceControl APIs except Abort throw an InvalidOperationException.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1