Rediger

Del via


IWorkflowInstanceManagement.Cancel(Guid) Method

Definition

Cancels the specified workflow instance.

public:
 void Cancel(Guid instanceId);
[System.ServiceModel.OperationContract(Name="Cancel")]
public void Cancel (Guid instanceId);
[<System.ServiceModel.OperationContract(Name="Cancel")>]
abstract member Cancel : Guid -> unit
Public Sub Cancel (instanceId As Guid)

Parameters

instanceId
Guid

The GUID identifier of the workflow instance to cancel.

Attributes

Remarks

If the instance identified by the instance ID does not exist in-memory, an attempt is made to load the instance from the instance store (if persistence has been enabled). If persistence has not been enabled or the instance was not persisted a fault is returned to the caller. Once the in-memory instance has been loaded or identified, this operation cancels the workflow instance.

Applies to