WorkflowClient.TerminateWorkflowInstance Method

Terminates the workflow instance with ID id for the reason specified by reason.

Namespace: Microsoft.Workflow.Activities
Assembly: Microsoft.Workflow.Activities (in microsoft.workflow.activities.dll)



Public Sub TerminateWorkflowInstance ( _
    typeName As String, _
    id As String, _
    reason As String _
public void TerminateWorkflowInstance (
    string typeName,
    string id,
    string reason
void TerminateWorkflowInstance (
    String^ typeName, 
    String^ id, 
    String^ reason
public void TerminateWorkflowInstance (
    String typeName, 
    String id, 
    String reason
public function TerminateWorkflowInstance (
    typeName : String, 
    id : String, 
    reason : String


  • typeName
  • id
  • reason

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

See Also


WorkflowClient Class
WorkflowClient Members
Microsoft.Workflow.Activities Namespace