WorkflowInstanceService.CancelWorkflow method
Sends a cancel message to the specified workflow instance and permits the instance to execute a cancellation scope.
Namespace: Microsoft.SharePoint.WorkflowServices
Assembly: Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)
Syntax
'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Sub CancelWorkflow ( _
instance As WorkflowInstance _
)
'Usage
Dim instance As WorkflowInstanceService
Dim instance As WorkflowInstance
instance.CancelWorkflow(instance)
[ClientCallableMethodAttribute]
public abstract void CancelWorkflow(
WorkflowInstance instance
)
Parameters
instance
Type: Microsoft.SharePoint.WorkflowServices.WorkflowInstanceThe WorkflowInstance instance to cancel.