TaskBaseline Class

Represents Baseline of a Task.
Inheritance Hierarchy
SystemObject
  Aspose.TasksBaseline
    Aspose.TasksTaskBaseline

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public sealed class TaskBaseline : Baseline, 
	IComparable<TaskBaseline>, IEquatable<TaskBaseline>

The TaskBaseline type exposes the following members.

Constructors
  NameDescription
Public methodTaskBaseline
Initializes a new instance of the TaskBaseline class.
Properties
  NameDescription
Public propertyCode exampleBaselineNumber
Gets or sets the unique number of a baseline data record.
(Inherited from Baseline.)
Public propertyCode exampleBcwp
Gets or sets the budgeted cost of a work performed by a resource for a project to-date.
(Inherited from Baseline.)
Public propertyCode exampleBcws
Gets or sets the budget cost of a work scheduled for a resource.
(Inherited from Baseline.)
Public propertyCode exampleCost
Gets or sets the projected cost of a resource when the baseline is saved.
(Inherited from Baseline.)
Public propertyCode exampleDuration
Gets or sets the scheduled duration of the task when the baseline was saved.
Public propertyCode exampleDurationFormat
Gets or sets the format for expressing the duration of the task baseline.
Public propertyCode exampleEstimatedDuration
Gets or sets a value indicating whether the baseline duration of the task was estimated.
Public propertyCode exampleFinish
Gets or sets the scheduled finish date of the task when the baseline was saved.
Public propertyCode exampleFixedCost
Gets or sets a fixed cost of the task when the baseline was saved.
Public propertyCode exampleInterim
Gets or sets a value indicating whether this is an Interim Baseline.
Public propertyCode exampleStart
Gets or sets the scheduled start date of the task when the baseline was saved.
Public propertyCode exampleTimephasedData
Gets or sets a TimephasedDataCollection instance for this object. The time phased data associated with the task baseline.
Public propertyCode exampleWork
Gets or sets the work assigned to a resource when the baseline is saved.

Field Value

Type: 
The amount of assigned work to a resource when the baseline was saved.
(Inherited from Baseline.)
Methods
  NameDescription
Public methodCode exampleCompareTo(Baseline)
IComparable interface implementation. Compares this instance to the specified Baseline object.
(Inherited from Baseline.)
Public methodCode exampleCompareTo(TaskBaseline)
IComparable interface implementation. Compares this instance to the specified Baseline object.
Public methodCode exampleEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides BaselineEquals(Object).)
Public methodCode exampleEquals(Baseline)
Returns a value indicating whether this instance is equal to a specified object.
(Inherited from Baseline.)
Public methodCode exampleEquals(TaskBaseline)
Returns a value indicating whether this instance is equal to the specified TaskBaseline object.
Public methodCode exampleGetHashCode
Returns a hash code value for the instance of the TaskBaseline class.
(Overrides BaselineGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how to get access to a baseline information.
var project = new Project();

// Creating TaskBaseline
var task = project.RootTask.Children.Add("Task");
project.SetBaseline(BaselineType.Baseline);

// Display task baseline duration
var baseline = task.Baselines.ToList()[0];
Console.WriteLine("Baseline Start: {0}", baseline.Start);
Console.WriteLine("Baseline duration: {0}", baseline.Duration);
Console.WriteLine("Baseline duration format: {0}", baseline.DurationFormat);
Console.WriteLine("Is it estimated duration?: {0}", baseline.EstimatedDuration);
Console.WriteLine("Baseline Finish: {0}", baseline.Finish);

// value indicating whether this is an Interim Baseline
Console.WriteLine("Interim: {0}", baseline.Interim);
Console.WriteLine("Fixed Cost: {0}", baseline.FixedCost);

// print timephased data of task baseline
Console.WriteLine("Number of timephased items: " + baseline.TimephasedData.Count);
foreach (var data in baseline.TimephasedData)
{
    Console.WriteLine(" Uid: " + data.Uid);
    Console.WriteLine(" Start: " + data.Start);
    Console.WriteLine(" Finish: " + data.Finish);
}
See Also