Share via


Task.TaskDependencies Property

Project Developer Reference

Returns a TaskDependencies collection representing the link type and link lag information between two tasks. Read-only Object.

Syntax

expression.TaskDependencies

expression   A variable that represents a Task object.

Return Value
TaskDependencies

Example
This example examines each predecessor for the specified task and brings up a message for each predecessor that has a priority higher than "Medium."

Visual Basic for Applications
  Sub FindHighPriPreds()
    Dim TaskDep As TaskDependency
For Each TaskDep In ActiveProject.Tasks("Write Requirements Brief").<strong class="bterm">TaskDependencies</strong>
    If TaskDep.From.Priority &gt; 500 Then
        MsgBox "Task #" &amp; TaskDep.From.ID &amp; " (" &amp; TaskDep.From.Name &amp; ") " &amp; _
            "has a priority higher than medium."
    End If
Next TaskDep

End Sub

See Also