ParallelActivityDesigner.CanRemoveActivities Method (ReadOnlyCollection<Activity>)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
Show: