Creating Task Baseline

Contents
[ Hide Show ]

Overview

A baseline is a set of various conditions or reference points used to evaluate project performance over time. The TaskBaseline class can be used to create a baseline.

Creating Task Baseline

A task baseline can be created using the default constructor for the TaskBaseLine class as shown below.

1// Create project instance
2System::SharedPtr<Project> project1 = System::MakeObject<Project>();
3    
4// Creating TaskBaseline:
5System::SharedPtr<Task> task = project1->get_RootTask()->get_Children()->Add(u"Task");
6    
7// Set baseline for specified tasks and entire project
8project1->SetBaseline(Aspose::Tasks::BaselineType::Baseline, System::MakeArray<System::SharedPtr<Aspose::Tasks::Task>>({task}));
9project1->SetBaseline(Aspose::Tasks::BaselineType::Baseline);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.