ParallelActivityDesigner.CanRemoveActivities Method (ReadOnlyCollection<Activity>)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a value that indicates whether child activities of the activity associated with the ParallelActivityDesigner can be deleted.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public override bool CanRemoveActivities(
	ReadOnlyCollection<Activity> activitiesToRemove


Type: System.Collections.ObjectModel.ReadOnlyCollection<Activity>

The read-only collection of activities to remove.

Return Value

Type: System.Boolean

true if the activities can be deleted from the parent activity; otherwise false.

The following example shows how to override the CanRemoveActivities method to allow the moving of child activities within the ParallelActivityDesigner.

public override bool CanRemoveActivities(ReadOnlyCollection<Activity> activitiesToRemove)
    return true;

.NET Framework
Available since 3.0
Return to top