
## CreateCostTimephased (1 of 2) {#createcosttimephased_1}

Creates and initializes a new instance of the Aspose::Tasks::TimephasedData class for cost-based time phased data.

**Returns:** A instance of the Aspose::Tasks::TimephasedData class for cost-based time phased data.

```cpp
CreateCostTimephased(int32_t uid, System::DateTime start, System::DateTime finish, double value, Aspose::Tasks::TimephasedDataType type)
```

| Parameter | Description |
| --- | --- |
| uid | UID of the task. |
| start | start date-time. |
| finish | Finish date-time. |
| value | Cost value. |
| type | Time-phased data type. |

---

## CreateCostTimephased (2 of 2) {#createcosttimephased_2}

Creates and initializes a new instance of the Aspose::Tasks::TimephasedData class for cost-based time phased data.

**Returns:** A instance of the Aspose::Tasks::TimephasedData class for cost-based time phased data.

```cpp
CreateCostTimephased(int32_t uid, System::DateTime start, System::DateTime finish, double value, TimeUnitType timeUnit, Aspose::Tasks::TimephasedDataType type)
```

| Parameter | Description |
| --- | --- |
| uid | UID of the task. |
| start | start date-time. |
| finish | Finish date-time. |
| value | Cost value. |
| timeUnit | Time unit type. |
| type | Time-phased data type. |

