WorkflowInstanceService.TerminateWorkflow method

Terminate a workflow instance forcefully by deleting it from memory. The instance is not allowed to execute a cancellation scope

Namespace:  Microsoft.SharePoint.WorkflowServices
Assembly:  Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)

Syntax

'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Sub TerminateWorkflow ( _
    instance As WorkflowInstance _
)
'Usage
Dim instance As WorkflowInstanceService
Dim instance As WorkflowInstance

instance.TerminateWorkflow(instance)
[ClientCallableMethodAttribute]
public abstract void TerminateWorkflow(
    WorkflowInstance instance
)

Parameters

See also

Reference

WorkflowInstanceService class

WorkflowInstanceService members

Microsoft.SharePoint.WorkflowServices namespace