Share via


WorkflowResourceManager.DeleteWorkflows Method (IDictionary<String, String>, Boolean)

Deletes the specified workflows associated with the manager and terminate active instances as well as using a metadata filter.

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

Syntax

'Declaration
Public Function DeleteWorkflows ( _
    metadataFilter As IDictionary(Of String, String), _
    terminateActiveInstances As Boolean _
) As Integer
'Usage
Dim instance As WorkflowResourceManager 
Dim metadataFilter As IDictionary(Of String, String)
Dim terminateActiveInstances As Boolean 
Dim returnValue As Integer 

returnValue = instance.DeleteWorkflows(metadataFilter, _
    terminateActiveInstances)
public int DeleteWorkflows(
    IDictionary<string, string> metadataFilter,
    bool terminateActiveInstances
)
public:
int DeleteWorkflows(
    IDictionary<String^, String^>^ metadataFilter, 
    bool terminateActiveInstances
)
member DeleteWorkflows : 
        metadataFilter:IDictionary<string, string> * 
        terminateActiveInstances:bool -> int
public function DeleteWorkflows(
    metadataFilter : IDictionary<String, String>, 
    terminateActiveInstances : boolean
) : int

Parameters

  • terminateActiveInstances
    Type: System.Boolean
    true to terminate active instances; otherwise, false.

Return Value

Type: System.Int32
The deleted workflows.

See Also

Reference

WorkflowResourceManager Class

DeleteWorkflows Overload

Microsoft.Workflow.Client Namespace