IWorkflowInstanceManagement.Cancel(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.