Déterminer le conflit du calendrier des tâches

Comment vérifier la divergence des horaires des tâches

La classe TSK expose le champ d’avertissement, utilisé pour vérifier si la tâche a des écarts de planification. Ceci est un drapeau et renvoie vrai ou faux.

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.