Project.GetBaselineSaveTime
Project.GetBaselineSaveTime method
Returns the baseline save time.
public DateTime GetBaselineSaveTime(BaselineType baselineNumber)
Parameter | Type | Description |
---|---|---|
baselineNumber | BaselineType | The 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
- enum BaselineType
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks