## TaskKey enumeration

Represents a list of supported task fields.

```csharp
public enum TaskKey : byte
```

### Values

| Name | Value | Description |
| --- | --- | --- |
| Uid | `0` | Represents the Unique ID (Task) field. |
| Id | `1` | Represents the Id (Task) field. |
| Name | `2` | Represents the Name (Task) field. |
| Type | `3` | Represents the Type (Task) field. |
| IsNull | `4` | Represents the IsNull (Task) field. |
| Created | `5` | Represents the Created (Task) field. |
| Contact | `6` | Represents the Contact (Task) field. |
| WBS | `7` | Represents the WBS (Task) field. |
| WBSLevel | `8` | Represents the WBSLevel (Task) field. |
| OutlineNumber | `9` | Represents the OutlineNumber (Task) field. |
| OutlineLevel | `10` | Represents the OutlineLevel (Task) field. |
| Priority | `11` | Represents the Priority (Task) field. |
| Start | `12` | Represents the Start (Task) field. |
| Finish | `13` | Represents the Finish (Task) field. |
| Duration | `14` | Represents the Duration (Task) field. |
| DurationVariance | `15` | Represents the DurationVariance (Task) field. |
| Work | `16` | Represents the Work (Task) field. |
| Stop | `17` | Represents the Stop (Task) field. |
| Resume | `18` | Represents the Resume (Task) field. |
| IsResumeValid | `19` | Represents the IsResumeValid (Task) field. |
| IsEffortDriven | `20` | Represents the IsEffortDriven (Task) field. |
| IsRecurring | `21` | Represents the IsRecurring (Task) field. |
| IsOverallocated | `22` | Represents the IsOverallocated (Task) field. |
| HasOverallocatedResource | `23` | Represents the HasOverallocatedResource (Task) field. |
| IsEstimated | `24` | Represents the IsEstimated (Task) field. |
| IsMilestone | `25` | Represents the IsMilestone (Task) field. |
| IsCritical | `26` | Represents the IsCritical (Task) field. |
| IsSubproject | `27` | Represents the IsSubproject (Task) field. |
| IsSubprojectReadOnly | `28` | Represents the IsSubprojectReadOnly (Task) field. |
| IsMarked | `29` | Represents the IsMarked (Task) field. |
| IgnoreWarnings | `30` | Represents the IgnoreWarnings (Task) field. |
| SubprojectName | `31` | Represents the SubprojectName (Task) field. |
| IsExternalTask | `32` | Represents the IsExternalTask (Task) field. |
| IsSummary | `33` | Represents the IsSummary (Task) field. |
| ExternalTaskProject | `34` | Represents the ExternalTaskProject (Task) field. |
| ExternalId | `35` | Represents the ExternalId (Task) field. |
| EarlyStart | `36` | Represents the EarlyStart (Task) field. |
| EarlyFinish | `37` | Represents the EarlyFinish (Task) field. |
| LateStart | `38` | Represents the LateStart (Task) field. |
| LateFinish | `39` | Represents the LateFinish (Task) field. |
| StartVariance | `40` | Represents the StartVariance (Task) field. |
| FinishVariance | `41` | Represents the FinishVariance (Task) field. |
| WorkVariance | `42` | Represents the WorkVariance (Task) field. |
| CostVariance | `43` | Represents the CostVariance (Task) field. |
| FreeSlack | `44` | Represents the FreeSlack (Task) field. |
| TotalSlack | `45` | Represents the TotalSlack (Task) field. |
| StartSlack | `46` | Represents the StartSlack (Task) field. |
| FinishSlack | `47` | Represents the FinishSlack (Task) field. |
| FixedCost | `48` | Represents the FixedCost (Task) field. |
| FixedCostAccrual | `49` | Represents the FixedCostAccrual (Task) field. |
| PercentComplete | `50` | Represents the PercentComplete (Task) field. |
| PercentWorkComplete | `51` | Represents the PercentWorkComplete (Task) field. |
| Cost | `52` | Represents the Cost (Task) field. |
| OvertimeCost | `53` | Represents the OvertimeCost (Task) field. |
| ActualStart | `54` | Represents the ActualStart (Task) field. |
| ActualFinish | `55` | Represents the ActualFinish (Task) field. |
| ActualDuration | `56` | Represents the ActualDuration (Task) field. |
| ActualCost | `57` | Represents the ActualCost (Task) field. |
| ActualOvertimeCost | `58` | Represents the ActualOvertimeCost (Task) field. |
| ActualWork | `59` | Represents the ActualWork (Task) field. |
| ActualOvertimeWork | `60` | Represents the ActualOvertimeWork (Task) field. |
| OvertimeWork | `61` | Represents the OvertimeWork (Task) field. |
| RegularWork | `62` | Represents the RegularWork (Task) field. |
| RemainingDuration | `63` | Represents the RemainingDuration (Task) field. |
| RemainingCost | `64` | Represents the RemainingCost (Task) field. |
| RemainingWork | `65` | Represents the RemainingWork (Task) field. |
| RemainingOvertimeWork | `66` | Represents the RemainingOvertimeWork (Task) field. |
| RemainingOvertimeCost | `67` | Represents the RemainingOvertimeCost (Task) field. |
| ACWP | `68` | Represents the ACWP (Task) field. |
| CV | `69` | Represents the CV (Task) field. |
| SV | `70` | Represents the SV (Task) field. |
| ConstraintType | `71` | Represents the ConstraintType (Task) field. |
| Calendar | `72` | Represents the Calendar (Task) field. |
| ConstraintDate | `73` | Represents the ConstraintDate (Task) field. |
| Deadline | `74` | Represents the Deadline (Task) field. |
| LevelAssignments | `75` | Represents the LevelAssignments (Task) field. |
| LevelingCanSplit | `76` | Represents the LevelingCanSplit (Task) field. |
| LevelingDelay | `77` | Represents the LevelingDelay (Task) field. |
| PreleveledStart | `78` | Represents the PreleveledStart (Task) field. |
| PreleveledFinish | `79` | Represents the PreleveledFinish (Task) field. |
| Hyperlink | `80` | Represents the Hyperlink (Task) field. |
| HyperlinkAddress | `81` | Represents the HyperlinkAddress (Task) field. |
| HyperlinkSubAddress | `82` | Represents the HyperlinkSubAddress (Task) field. |
| IgnoreResourceCalendar | `83` | Represents the IgnoreResourceCalendar (Task) field. |
| HideBar | `84` | Represents the HideBar (Task) field. |
| IsRollup | `85` | Represents the IsRollup (Task) field. |
| BCWS | `86` | Represents the BCWS (Task) field. |
| BCWP | `87` | Represents the BCWP (Task) field. |
| PhysicalPercentComplete | `88` | Represents the PhysicalPercentComplete (Task) field. |
| EarnedValueMethod | `89` | Represents the EarnedValueMethod (Task) field. |
| ActualWorkProtected | `90` | Represents the ActualWorkProtected (Task) field. |
| ActualOvertimeWorkProtected | `91` | Represents the ActualOvertimeWorkProtected (Task) field. |
| IsPublished | `92` | Represents the IsPublished (Task) field. |
| IsScheduled | `93` | Represents the IsScheduled (Task) field. |
| StatusManager | `94` | Represents the StatusManager (Task) field. |
| CommitmentStart | `95` | Represents the CommitmentStart (Task) field. |
| CommitmentFinish | `96` | Represents the CommitmentFinish (Task) field. |
| CommitmentType | `97` | Represents the CommitmentType (Task) field. |
| IsManual | `98` | Represents the IsManual (Task) field. |
| IsExpanded | `99` | Represents the IsExpanded (Task) field. |
| Guid | `100` | Represents the Guid (Task) field. |
| NotesText | `101` | Represents the NotesText (Task) field. |
| NotesRTF | `102` | Represents the NotesRTF (Task) field. |
| ManualStart | `103` | Represents the ManualStart (Task) field. |
| ManualFinish | `104` | Represents the ManualFinish (Task) field. |
| ManualDuration | `105` | Represents the ManualDuration (Task) field. |
| BudgetWork | `106` | Represents the BudgetWork (Task) field. |
| BudgetCost | `107` | Represents the BudgetCost (Task) field. |
| DisplayAsSummary | `108` | Represents the DisplayAsSummary (Task) field. |
| SummaryProgress | `109` | Represents the Summary Progress (Task) field. |
| IsActive | `110` | Represents the IsActive (Task) field. |
| StartText | `111` | Represents the StartText (Task) field. |
| FinishText | `112` | Represents the FinishText (Task) field. |
| DurationText | `113` | Represents the DurationText (Task) field. |
| CalendarUid | `114` | Represents the CalendarUid (Task) field. |
| ParentTaskUid | `115` | Represents the ParentTaskUid (Task) field. |
| DisplayOnTimeline | `116` | Represents the DisplayOnTimeline (Task) field. |
| TaskIsAssigned | `117` | Represents the TaskIsAssigned (Task) field. |
| TaskOriginalStart | `118` | Represents the original start (Task) field. |
| TaskOriginalFinish | `119` | Represents the original finish (Task) field. |
| IsShowBeforeProjectStartDateWarning | `120` | Represents the flag which makes MSP show the warning that a task is starting before project start date. |
| Warning | `121` | Represents the flag which indicates that task has schedule discrepancies. |
| ParentTaskGuid | `122` | Represents the ParentTaskGuid (Task) field. |
| ActivityId | `123` | Represents the ActivityId field (only applicable to Primavera projects). |
| FreeSlackTimeSpan | `124` | Represents the FreeSlack (Task) field. |
| TotalSlackTimeSpan | `125` | Represents the TotalSlack (Task) field. |
| StartSlackTimeSpan | `126` | Represents the StartSlack (Task) field. |
| FinishSlackTimeSpan | `127` | Represents the FinishSlack (Task) field. |
| ExternalUid | `128` | Represents the Unique Id of external task. |

## Examples

Shows how to read/write task properties.

```csharp
var project = new Project();

// Add task and set task properties
var task = project.RootTask.Children.Add();
task.Set(Tsk.Name, "Task1");
task.Set(Tsk.Start, new DateTime(2020, 3, 31, 8, 0, 0));
task.Set(Tsk.Finish, new DateTime(2020, 3, 31, 17, 0, 0));

var collector = new ChildTasksCollector();
TaskUtils.Apply(project.RootTask, collector, 0);

// Parse through all the collected tasks
foreach (var tsk in collector.Tasks)
{
    Console.WriteLine("Task Id: {0}", tsk.Get(Tsk.Id));
    Console.WriteLine("Task Uid: {0}", tsk.Get(Tsk.Uid));
    Console.WriteLine("Task Name: {0}", tsk.Get(Tsk.Name));
    Console.WriteLine("Task Start: {0}", tsk.Get(Tsk.Start));
    Console.WriteLine("Task Finish: {0}", tsk.Get(Tsk.Finish));
}
```

### See Also

* namespace [Aspose.Tasks](../../aspose.tasks/)
* assembly [Aspose.Tasks](../../)


