IWbs.DeleteTask Method

Deletes a task and its content.
Sub DeleteTask( _ 
ByVal task As ITask, _ 
Optional ByVal AllowMoveDataUp As Boolean = False, _ 
Optional ByVal AutoRenumbering As Boolean = True _ 
)
This language is not supported or no code example is available.
void DeleteTask( 
ITask task
bool AllowMoveDataUp = False, 
bool AutoRenumbering = True 
)
This language is not supported or no code example is available.

Parameters

task
ITask

The task to be deleted.

AllowMoveDataUp
bool

When you delete the last task of a branch, when true, minute of that task comes to the upper task (which was a branch before deletion). When false, content of the task is deleted. Default is false.

AutoRenumbering
bool

Indicates whether renumbering should be done when the estimate has automatic renumbering set. The default is true but for performance reasons you may want to set it to false to do a global renumbering afterwards.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 
The function neither rebuild WBS nor minutes. You must call IEstimate.CheckAndRepaint method after any change brought by the function. After successful deletion, the ITask.Kind property of the task will be set to TaskKind.Invalid. You should no longer use this object.
Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition