Task.GetTimephasedData
Contents
[
Hide
]GetTimephasedData(DateTime, DateTime, TimephasedDataType)
Returns TimephasedDataCollection
object with TimephasedData
values within given start and end dates of specified time-phased data type.
public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end,
TimephasedDataType timephasedType)
Parameter | Type | Description |
---|---|---|
start | DateTime | The start date for the time phased data. |
end | DateTime | The end date for the time phased data. |
timephasedType | TimephasedDataType | The type of time phased data (TimephasedDataType ). |
Return Value
A TimephasedDataCollection
object with TimephasedData
values within given start and end dates of specified timephased data type.
Examples
Shows how to get timephased data (with specific type) of the task.
var project = new Project(DataDir + "BaselineTD2010_3.mpp");
var task = project.RootTask.Children.GetById(1);
List<TimephasedData> data = task.GetTimephasedData(project.Get(Prj.StartDate), project.Get(Prj.FinishDate).AddDays(2), TimephasedDataType.TaskBaselineWork)
.ToList();
foreach (var td in data)
{
Console.WriteLine("Start: " + td.Start);
Console.WriteLine("Finish: " + td.Finish);
Console.WriteLine("Type: " + td.TimephasedDataType);
}
See Also
- class TimephasedDataCollection
- enum TimephasedDataType
- class Task
- namespace Aspose.Tasks
- assembly Aspose.Tasks
GetTimephasedData(DateTime, DateTime)
Returns TimephasedDataCollection
object with TimephasedData
values within given start and end dates.
public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)
Parameter | Type | Description |
---|---|---|
start | DateTime | The start date for the time phased data. |
end | DateTime | The end date for the time phased data. |
Return Value
List of TimephasedData
to be filled in.
Examples
Shows how to get timephased data (with TaskWork type) of the task.
var task = project.RootTask.Children.GetById(1);
List<TimephasedData> data = task.GetTimephasedData(project.Get(Prj.StartDate), project.Get(Prj.FinishDate)).ToList();
foreach (var td in data)
{
Console.WriteLine("Start: " + td.Start);
Console.WriteLine("Finish: " + td.Finish);
Console.WriteLine("Type: " + td.TimephasedDataType);
}
See Also
- class TimephasedDataCollection
- class Task
- namespace Aspose.Tasks
- assembly Aspose.Tasks