IWbs.DeleteLink Method
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
ITaskThe new parent task, if the task was a parent task of the link. Otherwise null reference (Nothing in Visual Basic).
Available since QDV 7.18.697.