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