Tsk.IsEffortDriven
Contents
[
Hide
]Tsk.IsEffortDriven field
Determines whether the scheduling for the task is effort-driven scheduling.
public static readonly Key<NullableBool, TaskKey> IsEffortDriven;
Examples
Shows how to find critical and/or effort driven tasks.
var project = new Project(DataDir + "CriticalEffortDrivenTasks.mpp");
var collector = new ChildTasksCollector();
TaskUtils.Apply(project.RootTask, collector, 0);
// Parse through all the collected tasks
foreach (var task in collector.Tasks)
{
var effortDriven = task.Get(Tsk.IsEffortDriven).Value ? "EffortDriven" : "Non-EffortDriven";
var nonCritical = task.Get(Tsk.IsCritical).Value ? "Critical" : "Non-Critical";
Console.WriteLine(task.Get(Tsk.Name) + " : " + effortDriven);
Console.WriteLine(task.Get(Tsk.Name) + " : " + nonCritical);
}
See Also
- struct Key<T,K>
- struct NullableBool
- enum TaskKey
- class Tsk
- namespace Aspose.Tasks
- assembly Aspose.Tasks