InstanceManager.Terminate Method (String, String, String)

 

Terminates specified workflow instance.

Namespace:   Microsoft.Workflow.Client
Assembly:  Microsoft.Workflow.Client (in Microsoft.Workflow.Client.dll)

Syntax

public WorkflowInstanceResult Terminate(
    string workflowName,
    string instanceName,
    string reason
)
public:
WorkflowInstanceResult^ Terminate(
    String^ workflowName,
    String^ instanceName,
    String^ reason
)
member Terminate : 
        workflowName:string *
        instanceName:string *
        reason:string -> WorkflowInstanceResult
Public Function Terminate (
    workflowName As String,
    instanceName As String,
    reason As String
) As WorkflowInstanceResult

Parameters

  • workflowName
    Type: System.String

    The name of the workflow to which the instance belongs.

  • instanceName
    Type: System.String

    The name of the workflow to be terminated.

  • reason
    Type: System.String

    Reason for terminating the instance.

Return Value

Type: Microsoft.Activities.WorkflowInstanceResult

The specified workflow instance to be terminated.

See Also

InstanceManager Class
Microsoft.Workflow.Client Namespace

Return to top