Add

TaskLinkCollection.Add method (1 of 4)

Returns an instance of Finish-Start TaskLink which has been added to the TaskLinkCollection object.

public TaskLink Add(Task pred, Task succ)
Parameter Type Description
pred Task Predecessor task.
succ Task Successor task.

Return Value

a task link instance which has been added to this object.

Exceptions

exception condition
ArgumentNullException If any of input tasks is equal to null then ArgumentNullException will be thrown.

See Also


TaskLinkCollection.Add method (2 of 4)

Returns an instance of TaskLink which has been added to the TaskLinkCollection object.

public TaskLink Add(Task pred, Task succ, TaskLinkType linkType)
Parameter Type Description
pred Task Predecessor task.
succ Task Successor task.
linkType TaskLinkType Link type TaskLinkType

Return Value

a task link instance which has been added to this object.

Exceptions

exception condition
ArgumentNullException If any of input tasks is equal to null then ArgumentNullException will be thrown.

See Also


TaskLinkCollection.Add method (3 of 4)

Returns an instance of TaskLink which has been added to the TaskLinkCollection object.

public TaskLink Add(Task pred, Task succ, TaskLinkType linkType, Duration lag)
Parameter Type Description
pred Task Predecessor task.
succ Task Successor task.
linkType TaskLinkType Link type TaskLinkType
lag Duration Link lag Duration.

Return Value

a task link which has been added to this object.

Exceptions

exception condition
ArgumentNullException If any of input tasks is equal to null then ArgumentNullException will be thrown.

See Also


TaskLinkCollection.Add method (4 of 4)

This is the stub implementation of ICollection’s Add method, that only throws NotSupportedException

public void Add(TaskLink item)
Parameter Type Description
item TaskLink The item to add.

See Also