ParentProject

Task.ParentProject property

Gets the parent project of a task.

public Project ParentProject { get; }

Remarks

Call Project.UpdateReferences to update these properties.

Examples

Shows how to use parent project of task.

var project = new Project();
var task = project.RootTask.Children.Add("Parent");

// set a duration for the task by using default project time unit type.
task.Set(Tsk.Duration, task.ParentProject.GetDuration(1));

Console.WriteLine(task.Get(Tsk.Duration));

See Also