CreateUnitTimephased

TimephasedData.CreateUnitTimephased method

Creates and initializes a new instance of the TimephasedData class for unit-based time phased data of an assignment of a material resource.

public static TimephasedData CreateUnitTimephased(int uid, DateTime start, DateTime finish, 
    double units, TimephasedDataType type)
Parameter Type Description
uid Int32 UID of the task.
start DateTime Start date-time.
finish DateTime Finish date-time.
units Double Number of units.
type TimephasedDataType Time-phased data type.

Return Value

A instance of the TimephasedData class for cost-based time phased data.

Exceptions

exception condition
ArgumentException If negative amount of units was specified.

See Also