Project.SetBaselineSaveTime

Project.SetBaselineSaveTime method

Sets the baseline save time.

public void SetBaselineSaveTime(BaselineType baselineNumber, DateTime value)
ParameterTypeDescription
baselineNumberBaselineTypeThe baseline’s number BaselineType.
valueDateTimeThe baseline’s last save date and time.

Remarks

Set value to 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