IWorkflowInstanceManagement.Terminate(Guid, String) 方法

定义

终止指定的工作流实例。Terminates the specified workflow instance.

public:
 void Terminate(Guid instanceId, System::String ^ reason);
[System.ServiceModel.OperationContract(Name="Terminate")]
public void Terminate (Guid instanceId, string reason);
[<System.ServiceModel.OperationContract(Name="Terminate")>]
abstract member Terminate : Guid * string -> unit
Public Sub Terminate (instanceId As Guid, reason As String)

参数

instanceId
Guid

要终止的工作流实例的 GUID 标识符。The GUID identifier of the workflow instance to terminate.

reason
String

终止工作流实例的原因。The reason to terminate the workflow instance.

属性

注解

此操作合并保留操作后跟的中止操作的功能。This operation combines the functionality of an abort operation followed by a persist operation.

适用于