TaskLinkCollection

TaskLinkCollection class

Represents a collection of Task objects.

public class TaskLinkCollection : IList<TaskLink>

Properties

Name Description
Count { get; } Gets the number of objects contained in this TaskLinkCollection object.
Item { get; set; } Returns or sets the element at the specified index.
ParentProject { get; } Gets the parent project of the ResourceAssignmentCollection object. parent Project for this object.

Methods

Name Description
Add(TaskLink) This is the stub implementation of ICollection’s Add method, that only throws NotSupportedException
Add(Task, Task) Returns an instance of Finish-Start TaskLink which has been added to the TaskLinkCollection object.
Add(Task, Task, TaskLinkType) Returns an instance of TaskLink which has been added to the TaskLinkCollection object.
Add(Task, Task, TaskLinkType, Duration) Returns an instance of TaskLink which has been added to the TaskLinkCollection object.
GetEnumerator() Returns an enumerator for this collection.
Remove(TaskLink) Removes task link from a project.
ToList() Converts the TaskLinkCollection object to a list of TaskLink objects.

See Also