Project.GetBaselineSaveTime

Project.GetBaselineSaveTime method

Returns the baseline save time.

public DateTime GetBaselineSaveTime(BaselineType baselineNumber)
ParameterTypeDescription
baselineNumberBaselineTypeThe baseline’s number BaselineType.

Return Value

The baseline’s last save date and time.

Remarks

Returns DateTime.MinValue if the baseline was not saved.

Examples

Shows how to read/write project’s baseline save time.

var project = new Project();
var baselineSave = project.GetBaselineSaveTime(BaselineType.Baseline);
Console.WriteLine("Baseline save time before: " + baselineSave);

// set baseline save time
project.SetBaselineSaveTime(BaselineType.Baseline, DateTime.Today);

var baselineSaveNew = project.GetBaselineSaveTime(BaselineType.Baseline);
Console.WriteLine("Baseline save time after: " + baselineSaveNew);

See Also