IWbs.CreateLink Method

Creates a link between two tasks.
Sub CreateLink( _ 
ByVal parentTask As ITask, _ 
ByVal childTask As ITask, _ 
ByVal recalculate As Boolean
)
This language is not supported or no code example is available.
void CreateLink( 
ITask parentTask
ITask childTask
bool recalculate 
)
This language is not supported or no code example is available.

Parameters

parentTask
ITask

The parent task.

childTask
ITask

The child task.

recalculate
bool

Indicates whether to recalculate the costs for the child task. In this case, the method calculates the parent task, which will cause the result to be written in all child tasks too. You can set it to null reference (Nothing in Visual Basic) for performance reasons and recalculate the estimate later (e.g. with IEstimateVersion.ComputeAll).

Exception type Condition

QdvApiException

An error occurred. For example, if the child task is already linked to some parent task.

Remarks
 
The function neither rebuilds WBS nor minutes. You must call IEstimate.CheckAndRepaint method after any change made by the function.
Version
 
Available since QDV 7.18.697.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition