Prj.FinishDate
Prj.FinishDate field
The finish date of a project.
public static readonly Key<DateTime, PrjKey> FinishDate;
Examples
Shows how to reschedule the project from finish date instead of the start one.
var project = new Project();
project.Set(Prj.ScheduleFromStart, false);
project.Set(Prj.FinishDate, new DateTime(2020, 1, 1));
// Now all tasks dates (Start, Finish, EarlyStart, EarlyFinish, LateStart, LateFinish) are calculated. To get the critical path we need to calculate slacks (can be invoked in separate thread, but only after calculation of all early/late dates)
project.Recalculate();
foreach (var task in project.CriticalPath)
{
Console.WriteLine(task.Get(Tsk.Id));
Console.WriteLine(task.Get(Tsk.Name));
}
See Also
- struct Key<T,K>
- enum PrjKey
- class Prj
- namespace Aspose.Tasks
- assembly Aspose.Tasks