ActivityManager.Delete Method

 

Deletes specified activities

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

Overload List

Name Description
System_CAPS_pubmethod Delete()

Deletes all workflow activities in the current scope.

System_CAPS_pubmethod Delete(IDictionary<String, String>)

Deletes workflow activities matching specified metadata filter in the current scope.

System_CAPS_pubmethod Delete(IDictionary<String, String>, Boolean)

Deletes workflow activities matching specified metadata filter in the current scope and optionally terminate dependent workflow instances.

System_CAPS_pubmethod Delete(String)

Deletes the specified workflow activity.

System_CAPS_pubmethod Delete(String, Boolean)

Deletes the specific workflow activity and optionally terminate dependent workflow instances.

See Also

ActivityManager Class
Microsoft.Workflow.Client Namespace

Return to top

ActivityManager.Delete Method ()

Deletes all workflow activities in the current scope.

Syntax

public int Delete()
public:
int Delete()
member Delete : unit -> int
Public Function Delete As Integer

Return Value

Type: System.Int32

The number of deleted workflow activities.

Return to top

ActivityManager.Delete Method (IDictionary<String, String>)

Deletes workflow activities matching specified metadata filter in the current scope.

Syntax

public int Delete(
    IDictionary<string, string> metadataFilter
)
public:
int Delete(
    IDictionary<String^, String^>^ metadataFilter
)
member Delete : 
        metadataFilter:IDictionary<string, string> -> int
Public Function Delete (
    metadataFilter As IDictionary(Of String, String)
) As Integer

Parameters

Return Value

Type: System.Int32

The number of deleted workflow activities.

Return to top

ActivityManager.Delete Method (IDictionary<String, String>, Boolean)

Deletes workflow activities matching specified metadata filter in the current scope and optionally terminate dependent workflow instances.

Syntax

public int Delete(
    IDictionary<string, string> metadataFilter,
    bool terminateDependentInstances
)
public:
int Delete(
    IDictionary<String^, String^>^ metadataFilter,
    bool terminateDependentInstances
)
member Delete : 
        metadataFilter:IDictionary<string, string> *
        terminateDependentInstances:bool -> int
Public Function Delete (
    metadataFilter As IDictionary(Of String, String),
    terminateDependentInstances As Boolean
) As Integer

Parameters

  • terminateDependentInstances
    Type: System.Boolean

    true if all existing instances of any workflow that used a deleted activity should be terminated; false if existing instances of the affected workflows should continue execution.

Return Value

Type: System.Int32

The number of deleted workflow activities.

Remarks

If metadata filter is null then all workflow activities in the current scope will be delete. Otherwise only activities with the matching metadata filter will be deleted.

Return to top

ActivityManager.Delete Method (String)

Deletes the specified workflow activity.

Syntax

public void Delete(
    string activityName
)
public:
void Delete(
    String^ activityName
)
member Delete : 
        activityName:string -> unit
Public Sub Delete (
    activityName As String
)

Parameters

  • activityName
    Type: System.String

    Name of the activiity to be deleted.

Return to top

ActivityManager.Delete Method (String, Boolean)

Deletes the specific workflow activity and optionally terminate dependent workflow instances.

Syntax

public void Delete(
    string activityName,
    bool terminateDependentInstances
)
public:
void Delete(
    String^ activityName,
    bool terminateDependentInstances
)
member Delete : 
        activityName:string *
        terminateDependentInstances:bool -> unit
Public Sub Delete (
    activityName As String,
    terminateDependentInstances As Boolean
)

Parameters

  • activityName
    Type: System.String

    Name of the activiity to be deleted.

  • terminateDependentInstances
    Type: System.Boolean

    true if all existing instances of any workflow that used a deleted activity should be terminated; false if existing instances of the affected workflows should continue execution.

Return to top