Determine Task Schedule Conflict

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()));
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.