QDVWBS.DeleteTask Method

NOTE: This member is now obsolete. Use Qdv.UserApi.ITask.DeleteTask or Qdv.UserApi.IWbs.DeleteTask instead.

Deletes a task and its content.
[Obsolete("Use Qdv.UserApi.ITask.DeleteTask or Qdv.UserApi.IWbs.DeleteTask instead.")] 
public int DeleteTask( 
string TaskIndex
bool AllowMoveDataUp = False, 
bool AutoRenumbering = True, 
ref string ErrorMessage = "" 
)
This language is not supported or no code example is available.

Parameters

TaskIndex
string

The Hex index of 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.

ErrorMessage
string

Optional. May return an error message. An empty string means no error.

Return Value

int

Returns an error number. 0 means no error.

Remarks
 
The function neither rebuild WBS nor minutes. You must call QDVEstimate.Check_And_Repaint method after any change brought by the function.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition