IWbs.DeleteLink Method

Deletes the link from a specified task (which is whether a parent or a child of the link) in WBS.
Function DeleteLink( _ 
ByVal task As ITask, _ 
ByVal newParent As ITask
) As ITask
This language is not supported or no code example is available.
ITask DeleteLink( 
ITask task
ITask newParent 
)
This language is not supported or no code example is available.

Parameters

task
ITask

The task that belongs to the link to be deleted. This can be whether the parent task or the child task of the link.

newParent
ITask

Only applied when the task is a parent task of the link. In such a case, all the links from child tasks to this parent are redirected to the newParent. If newParent is set to null reference (Nothing in Visual Basic), then the first child task will be used as the new parent. Note, if you specify the new parent, it must be a child task from one of the existing links! Otherwise an error will occur.

Return Value

ITask

The new parent task, if the task was a parent task of the link. Otherwise null reference (Nothing in Visual Basic).

Version
 
Available since QDV 7.18.697.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition