Project.SetBaselineSaveTime
Project.SetBaselineSaveTime method
Sets the baseline save time.
public void SetBaselineSaveTime(BaselineType baselineNumber, DateTime value)
Parameter | Type | Description |
---|---|---|
baselineNumber | BaselineType | The baseline’s number BaselineType . |
value | DateTime | The 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
- enum BaselineType
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks