Tsk.Priority
Tsk.Priority field
The level of importance given to a task, which in turn indicates how readily a task or assignment can be delayed or split during resource leveling.
public static readonly Key<int, TaskKey> Priority;
Examples
Shows how to read a task priority.
var project = new Project(DataDir + "TaskPriority.mpp");
var collector = new ChildTasksCollector();
TaskUtils.Apply(project.RootTask, collector, 0);
// Display Priorities for all tasks
foreach (var task in collector.Tasks)
{
Console.WriteLine(task.Get(Tsk.Name) + " - Priority : " + task.Get(Tsk.Priority));
}
See Also
- struct Key<T,K>
- enum TaskKey
- class Tsk
- namespace Aspose.Tasks
- assembly Aspose.Tasks