WorkflowInstance.WorkflowInstanceControl.Terminate(Exception) 方法

定义

使用指定的异常将 WorkflowInstance 转换为最终 Faulted 状态。

public:
 void Terminate(Exception ^ reason);
public void Terminate (Exception reason);
member this.Terminate : Exception -> unit
Public Sub Terminate (reason As Exception)

参数

reason
Exception

导致终止 WorkflowInstance 的异常。

适用于