Determine Task Schedule Conflict
Contents
[
Hide
Show
]How to Check Task Schedule Discrepancy
The Tsk class exposes the Warning field, used to check if the task has any schedule discrepancies. This is a flag and returns true or false.
1// Create project instance
2System::String dataDir = RunExamples::GetDataDir(System::Reflection::MethodBase::GetCurrentMethod(ASPOSE_CURRENT_FUNCTION)->get_DeclaringType().get_FullName());
3
4auto project = System::MakeObject<Project>(dataDir + u"schedule-conflict.mpp");
5auto task = project->get_RootTask()->get_Children()->GetById(1);
6System::Console::WriteLine(task->Get<bool>(Tsk::Warning()));