Click or drag to resize

TaskKey Enumeration

Represents a list of supported task fields.

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public enum TaskKey
Members
  Member nameValueDescription
Uid0 Represents the Uid (Task) field.
Id1 Represents the Id (Task) field.
Name2 Represents the Name (Task) field.
Type3 Represents the Type (Task) field.
IsNull4 Represents the IsNull (Task) field.
Created5 Represents the Created (Task) field.
Contact6 Represents the Contact (Task) field.
WBS7 Represents the WBS (Task) field.
WBSLevel8 Represents the WBSLevel (Task) field.
OutlineNumber9 Represents the OutlineNumber (Task) field.
OutlineLevel10 Represents the OutlineLevel (Task) field.
Priority11 Represents the Priority (Task) field.
Start12 Represents the Start (Task) field.
Finish13 Represents the Finish (Task) field.
Duration14 Represents the Duration (Task) field.
DurationVariance15 Represents the DurationVariance (Task) field.
DurationFormat16 Represents the DurationFormat (Task) field.
Work17 Represents the Work (Task) field.
Stop18 Represents the Stop (Task) field.
Resume19 Represents the Resume (Task) field.
IsResumeValid20 Represents the IsResumeValid (Task) field.
IsEffortDriven21 Represents the IsEffortDriven (Task) field.
IsRecurring22 Represents the IsRecurring (Task) field.
IsOverallocated23 Represents the IsOverallocated (Task) field.
HasOverallocatedResource24 Represents the HasOverallocatedResource (Task) field.
IsEstimated25 Represents the IsEstimated (Task) field.
IsMilestone26 Represents the IsMilestone (Task) field.
IsCritical27 Represents the IsCritical (Task) field.
IsSubproject28 Represents the IsSubproject (Task) field.
IsSubprojectReadOnly29 Represents the IsSubprojectReadOnly (Task) field.
IsMarked30 Represents the IsMarked (Task) field.
IgnoreWarnings31 Represents the IgnoreWarnings (Task) field.
SubprojectName32 Represents the SubprojectName (Task) field.
IsExternalTask33 Represents the IsExternalTask (Task) field.
IsSummary34 Represents the IsSummary (Task) field.
ExternalTaskProject35 Represents the ExternalTaskProject (Task) field.
ExternalId36 Represents the ExternalId (Task) field.
ExternalKey37 Represents the ExternalKey (Task) field.
EarlyStart38 Represents the EarlyStart (Task) field.
EarlyFinish39 Represents the EarlyFinish (Task) field.
LateStart40 Represents the LateStart (Task) field.
LateFinish41 Represents the LateFinish (Task) field.
StartVariance42 Represents the StartVariance (Task) field.
FinishVariance43 Represents the FinishVariance (Task) field.
WorkVariance44 Represents the WorkVariance (Task) field.
CostVariance45 Represents the CostVariance (Task) field.
FreeSlack46 Represents the FreeSlack (Task) field.
TotalSlack47 Represents the TotalSlack (Task) field.
StartSlack48 Represents the StartSlack (Task) field.
FinishSlack49 Represents the FinishSlack (Task) field.
FixedCost50 Represents the FixedCost (Task) field.
FixedCostAccrual51 Represents the FixedCostAccrual (Task) field.
PercentComplete52 Represents the PercentComplete (Task) field.
PercentWorkComplete53 Represents the PercentWorkComplete (Task) field.
Cost54 Represents the Cost (Task) field.
OvertimeCost55 Represents the OvertimeCost (Task) field.
ActualStart56 Represents the ActualStart (Task) field.
ActualFinish57 Represents the ActualFinish (Task) field.
ActualDuration58 Represents the ActualDuration (Task) field.
ActualCost59 Represents the ActualCost (Task) field.
ActualOvertimeCost60 Represents the ActualOvertimeCost (Task) field.
ActualWork61 Represents the ActualWork (Task) field.
ActualOvertimeWork62 Represents the ActualOvertimeWork (Task) field.
OvertimeWork63 Represents the OvertimeWork (Task) field.
RegularWork64 Represents the RegularWork (Task) field.
RemainingDuration65 Represents the RemainingDuration (Task) field.
RemainingCost66 Represents the RemainingCost (Task) field.
RemainingWork67 Represents the RemainingWork (Task) field.
RemainingOvertimeWork68 Represents the RemainingOvertimeWork (Task) field.
RemainingOvertimeCost69 Represents the RemainingOvertimeCost (Task) field.
ACWP70 Represents the ACWP (Task) field.
CV71 Represents the CV (Task) field.
SV72 Represents the SV (Task) field.
ConstraintType73 Represents the ConstraintType (Task) field.
Calendar74 Represents the Calendar (Task) field.
ConstraintDate75 Represents the ConstraintDate (Task) field.
Deadline76 Represents the Deadline (Task) field.
LevelAssignments77 Represents the LevelAssignments (Task) field.
LevelingCanSplit78 Represents the LevelingCanSplit (Task) field.
LevelingDelay79 Represents the LevelingDelay (Task) field.
LevelingDelayFormat80 Represents the LevelingDelayFormat (Task) field.
PreleveledStart81 Represents the PreleveledStart (Task) field.
PreleveledFinish82 Represents the PreleveledFinish (Task) field.
Hyperlink83 Represents the Hyperlink (Task) field.
HyperlinkAddress84 Represents the HyperlinkAddress (Task) field.
HyperlinkSubAddress85 Represents the HyperlinkSubAddress (Task) field.
IgnoreResourceCalendar86 Represents the IgnoreResourceCalendar (Task) field.
HideBar87 Represents the HideBar (Task) field.
IsRollup88 Represents the IsRollup (Task) field.
BCWS89 Represents the BCWS (Task) field.
BCWP90 Represents the BCWP (Task) field.
PhysicalPercentComplete91 Represents the PhysicalPercentComplete (Task) field.
EarnedValueMethod92 Represents the EarnedValueMethod (Task) field.
ActualWorkProtected93 Represents the ActualWorkProtected (Task) field.
ActualOvertimeWorkProtected94 Represents the ActualOvertimeWorkProtected (Task) field.
IsPublished95 Represents the IsPublished (Task) field.
IsScheduled96 Represents the IsScheduled (Task) field.
StatusManager97 Represents the StatusManager (Task) field.
CommitmentStart98 Represents the CommitmentStart (Task) field.
CommitmentFinish99 Represents the CommitmentFinish (Task) field.
CommitmentType100 Represents the CommitmentType (Task) field.
IsManual101 Represents the IsManual (Task) field.
IsExpanded102 Represents the IsExpanded (Task) field.
Guid103 Represents the Guid (Task) field.
NotesText104 Represents the NotesText (Task) field.
NotesRTF105 Represents the NotesRTF (Task) field.
ManualStart106 Represents the ManualStart (Task) field.
ManualFinish107 Represents the ManualFinish (Task) field.
ManualDuration108 Represents the ManualDuration (Task) field.
BudgetWork109 Represents the BudgetWork (Task) field.
BudgetCost110 Represents the BudgetCost (Task) field.
DisplayAsSummary111 Represents the DisplayAsSummary (Task) field.
SummaryProgress112 Represents the Summary Progress (Task) field.
IsActive113 Represents the IsActive (Task) field.
StartText114 Represents the StartText (Task) field.
FinishText115 Represents the FinishText (Task) field.
DurationText116 Represents the DurationText (Task) field.
CalendarUid117 Represents the CalendarUid (Task) field.
ParentTaskUid118 Represents the ParentTaskUid (Task) field.
DisplayOnTimeline119 Represents the DisplayOnTimeline (Task) field.
TaskIsAssigned120 Represents the TaskIsAssigned (Task) field.
TaskOriginalStart121 Represents the original start (Task) field.
TaskOriginalFinish122 Represents the original finish (Task) field.
IsShowBeforeProjectStartDateWarning123 Represents the flag which makes MSP show the warning that a task is starting before project start date.
Warning124 Represents the flag which indicates that task has schedule discrepancies.
ParentTaskGuid125 Represents the ParentTaskGuid (Task) field.
ActivityId126 Represents the ActivityId field (only applicable to Primavera projects).
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