ITask.DeleteTask Method

Deletes this task and its content. If the task contains sub-tasks, they will be deleted as well.
Sub DeleteTask( _ 
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( 
bool AllowMoveDataUp = False, 
bool AutoRenumbering = True 
)
This language is not supported or no code example is available.

Parameters

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 Kind property of this 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