Tsk Class

Represents properties of Task object.
Inheritance Hierarchy
SystemObject
  Aspose.TasksTsk

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public static class Tsk

The Tsk type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberCode exampleActivityId
Represents activity id field - a task's unique identifier used by Primavera. (only applicable to Primavera projects).
Public fieldStatic memberCode exampleActualCost
Costs incurred for work already performed by resources on their tasks, together with any other recorded costs associated with the task.
Public fieldStatic memberCode exampleActualDuration
The span of actual working time for a task, based on the scheduled duration and current remaining work or percent complete.
Public fieldStatic memberCode exampleActualFinish
The date when a task was completed.
Public fieldStatic memberCode exampleActualOvertimeCost
Costs incurred for overtime work already performed on tasks by assigned resources.
Public fieldStatic memberCode exampleActualOvertimeWork
The actual amount of overtime work already performed by resources assigned to tasks.
Public fieldStatic memberCode exampleActualOvertimeWorkProtected
The duration through which actual overtime work is protected.
Remarks
Reading supported for XML format only. Duration type.
Public fieldStatic memberCode exampleActualStart
The date and time that a task actually began.
Public fieldStatic memberCode exampleActualWork
The amount of work that has already been done by resources assigned to tasks.
Public fieldStatic memberCode exampleActualWorkProtected
The duration through which actual work is protected.
Remarks
Reading supported for XML format only. Duration type.
Public fieldStatic memberCode exampleACWP
Costs incurred for work already done on a task, up to the project status date or today's date.
Public fieldStatic memberCode exampleBCWP
The cumulative value of the task's percent complete multiplied by the time phased baseline costs.
Public fieldStatic memberCode exampleBCWS
The cumulative time phased baseline costs up to the status date or today's date.
Public fieldStatic memberCode exampleBudgetCost
Budget costs for budget cost resources. Budget resources are assigned only to the project summary task.
Public fieldStatic memberCode exampleBudgetWork
Budget work for budget work and material resources. Budget resources are assigned only to the project summary task.
Public fieldStatic memberCode exampleCalendar
The task calendar.
Public fieldStatic memberCode exampleCommitmentFinish
The finish date of a delivery.
Remarks
Reading supported for XML format only. DateTime type.
Public fieldStatic memberCode exampleCommitmentStart
The start date of a delivery.
Remarks
Reading supported for XML format only. DateTime type.
Public fieldStatic memberCode exampleCommitmentType
Determines whether a task has an associated delivery or a dependency on an associated delivery.
Remarks
Reading supported for XML format only. Int32 type.
Public fieldStatic memberCode exampleConstraintDate
The specific date associated with the constraint type.
Public fieldStatic memberCode exampleConstraintType
Provides choices for the type of constraint that can be applied for scheduling a task.
Public fieldStatic memberCode exampleContact
The name of an individual responsible for a task.
Public fieldStatic memberCode exampleCost
The total scheduled or projected cost for a task based on costs already incurred for work performed by resources assigned to the tasks, in addition to the costs planned for the remaining work.
Public fieldStatic memberCode exampleCostVariance
The difference between the baseline cost and total cost for a task, resource, or assignment.
Public fieldStatic memberCode exampleCreated
The date when a task was created.
Public fieldStatic memberCode exampleCV
The difference between the baseline cost and total cost for a task. Cost Variance = Cost - Baseline Cost
Public fieldStatic memberCode exampleDeadline
A target date that indicates when a task is to be completed.
Public fieldStatic memberCode exampleDisplayAsSummary
Determines whether the task should be displayed as a summary task.
Remarks
Reading supported for XML format only. Boolean type.
Public fieldStatic memberCode exampleDisplayOnTimeline
Specifies whether a task should be displayed on a timeline view.
Public fieldStatic memberCode exampleDuration
The total span of active working time for a task as entered or as calculated by Microsoft Project based on start date, finish date, calendars, and other scheduling factors.
Public fieldStatic memberCode exampleDurationFormat
Task duration format.
Public fieldStatic memberCode exampleDurationText
Returns the task's duration text.
Public fieldStatic memberCode exampleDurationVariance
The difference between the baseline duration of a task and the total duration (current estimate) of a task.
Public fieldStatic memberCode exampleEarlyFinish
The earliest date that a task could possibly finish, based on early finish dates of predecessor and successor tasks, other constraints, and any leveling delay.
Public fieldStatic memberCode exampleEarlyStart
The earliest date that a task could possibly begin, based on the early start dates of predecessor and successor tasks and other constraints.
Public fieldStatic memberCode exampleEarnedValueMethod
Determines whether the % Complete or Physical % Complete field should be used to calculate budgeted cost of work performed (BCWP).
Public fieldStatic memberCode exampleExternalId
If a task is an external task it contains the task's external Id.
Public fieldStatic memberCode exampleExternalTaskProject
The source location and task identifier of an external task.
Public fieldStatic memberCode exampleFinish
The scheduled finish date of a task.
Public fieldStatic memberCode exampleFinishSlack
The duration (in tenths of a minute) between the Early Finish and Late Finish dates.
Public fieldStatic memberCode exampleFinishText
Returns the task's finish text.
Public fieldStatic memberCode exampleFinishVariance
The time that represents the difference between the baseline finish date of a task or assignment and its current finish date.
Public fieldStatic memberCode exampleFixedCost
Shows any non resource task expense.
Public fieldStatic memberCode exampleFixedCostAccrual
Determines choices for how and when fixed costs are to be charged, or accrued, to the cost of a task.
Public fieldStatic memberCode exampleFreeSlack
The time (in tenths of a minute) that a task can be delayed without delaying any successor tasks.
Public fieldStatic memberCode exampleGuid
The generated unique identification codes for a task.
Public fieldStatic memberCode exampleHasOverallocatedResource
Indicates whether the task has an resource assigned which has more work on assigned tasks than can be completed within normal working capacity.
Public fieldStatic memberCode exampleHideBar
Determines whether the Gantt bar of a task is hidden when displayed in Microsoft Project.
Public fieldStatic memberCode exampleHyperlink
The title or explanatory text for a hyperlink associated with a task.
Public fieldStatic memberCode exampleHyperlinkAddress
The address for a hyperlink associated with a task.
Public fieldStatic memberCode exampleHyperlinkSubAddress
The specific location in a document in a hyperlink associated with a task.
Public fieldStatic memberCode exampleId
The position identifier of a task within the list of tasks.
Public fieldStatic memberCode exampleIgnoreResourceCalendar
Determines whether the scheduling of the task considers the calendars of the resources assigned to the task.
Public fieldStatic memberCode exampleIgnoreWarnings
Indicates whether to hide the schedule conflict warning indicator in Microsoft Project.
Public fieldStatic memberCode exampleIsActive
Determines whether a task is active. Inactive tasks no longer affect other tasks or the overall Project schedule.
Public fieldStatic memberCode exampleIsCritical
Determines whether a task is on the critical path.
Public fieldStatic memberCode exampleIsEffortDriven
Determines whether the scheduling for the task is effort-driven scheduling.
Public fieldStatic memberCode exampleIsEstimated
Determines whether a task is estimated.
Public fieldStatic memberCode exampleIsExpanded
Determines whether a summary task is expanded or not in GanttChart view.
Public fieldStatic memberCode exampleIsExternalTask
Determines whether a task is external.
Public fieldStatic memberCode exampleIsManual
Determines whether a task is manually scheduled.
Public fieldStatic memberCode exampleIsMarked
Shows whether a task is marked for further action or identification of some kind.
Public fieldStatic memberCode exampleIsMilestone
Determines whether a task is a milestone.
Public fieldStatic memberCode exampleIsNull
Determines whether a task is a null task.
Public fieldStatic memberCode exampleIsOverallocated
Indicates whether any of the assigned resources on a task is assigned to more work on the task than can be done withing the normal working capacity.
Public fieldStatic memberCode exampleIsPublished
Determines whether the current task should be published to Project Server with the rest of the project.
Public fieldStatic memberCode exampleIsRecurring
Determines whether a task is part of a series of recurring tasks.
Public fieldStatic memberCode exampleIsResumeValid
Determines whether a task can be resumed.
Public fieldStatic memberCode exampleIsRollup
Determines whether information about the subtask Gantt bars will be rolled up to the summary task bar.
Public fieldStatic memberCode exampleIsSubproject
Determines whether a task is an inserted project.
Public fieldStatic memberCode exampleIsSubprojectReadOnly
Determines whether a subproject is read-only.
Public fieldStatic memberCode exampleIsSummary
Determines whether a task is a summary task.
Public fieldStatic memberCode exampleLateFinish
The latest date that a task can finish without delaying the finish of the project.
Public fieldStatic memberCode exampleLateStart
The latest date that a task can start without delaying the finish of the project.
Public fieldStatic memberCode exampleLevelAssignments
Determines whether the leveling function can delay and split individual assignments in order to resolve over allocations.
Public fieldStatic memberCode exampleLevelingCanSplit
Determines whether the resource leveling function can cause splits on remaining work on this task.
Public fieldStatic memberCode exampleLevelingDelay
The time that a task is to be delayed from its early start date because of resource leveling.
Public fieldStatic memberCode exampleLevelingDelayFormat
The format of expressing the duration of a delay.
Public fieldStatic memberCode exampleManualDuration
Defines manually scheduled duration of a task.
Public fieldStatic memberCode exampleManualFinish
Defines manually scheduled finish of a task.
Public fieldStatic memberCode exampleManualStart
Defines manually scheduled start of a task.
Public fieldStatic memberCode exampleName
A task's name.
Public fieldStatic memberCode exampleNotesRTF
The text notes in RTF format.
Public fieldStatic memberCode exampleNotesText
Notes' plain text extracted from RTF data.
Public fieldStatic memberCode exampleOutlineLevel
The outline level of a task.
Public fieldStatic memberCode exampleOutlineNumber
The number that represents a task's position in the hierarchical outline structure.
Public fieldStatic memberCode exampleOvertimeCost
The total overtime cost for a task, for a resource on all assigned tasks, or for a resource assignment.
Public fieldStatic memberCode exampleOvertimeWork
The amount of overtime scheduled to be performed by all resources assigned to a task.
Public fieldStatic memberCode examplePercentComplete
The current status of a task, expressed as the percentage of the task's duration that has been completed.
Public fieldStatic memberCode examplePercentWorkComplete
The current status of a task expressed as the percentage of work that has been completed.
Public fieldStatic memberCode examplePhysicalPercentComplete
Percent complete value that can be be used as an alternative for calculating budgeted cost of work performed (BCWP).
Public fieldStatic memberCode examplePreleveledFinish
The finish date of a task as it was before resource leveling was done.
Public fieldStatic memberCode examplePreleveledStart
The start date of a task as it was before resource leveling was done.
Public fieldStatic memberCode examplePriority
The level of importance given to a task, which in turn indicates how readily a task or assignment can be delayed or split during resource leveling.
Public fieldStatic memberCode exampleRegularWork
The total amount of non overtime work scheduled to be performed by resources.
Public fieldStatic memberCode exampleRemainingCost
The remaining scheduled expense that will be incurred in completing the remaining scheduled work.
Public fieldStatic memberCode exampleRemainingDuration
The time that is required to complete the unfinished part of a task.
Public fieldStatic memberCode exampleRemainingOvertimeCost
The remaining scheduled overtime expense for a task.
Public fieldStatic memberCode exampleRemainingOvertimeWork
The amount of remaining scheduled overtime time.
Public fieldStatic memberCode exampleRemainingWork
The time still required to complete a task or set of tasks.
Public fieldStatic memberCode exampleResume
The date that the remaining part of a task is scheduled to resume after entering any progress.
Public fieldStatic memberCode exampleStart
The scheduled start date of a task.
Public fieldStatic memberCode exampleStartSlack
The duration (in tenths of a minute) between the Early Start and Late Start dates.
Public fieldStatic memberCode exampleStartText
Returns the task's start text.
Public fieldStatic memberCode exampleStartVariance
The time that represents the difference between a baseline start date of a task or assignment and its currently scheduled start date.
Public fieldStatic memberCode exampleStatusManager
The name of the enterprise resource who is to receive status updates for the current task from resources.
Public fieldStatic memberCode exampleStop
The date that represents the end of the actual portion of a task.
Public fieldStatic memberCode exampleSubprojectName
The source location of a subproject.
Public fieldStatic memberSV
The earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.
Public fieldStatic memberCode exampleTotalSlack
The time (in tenths of a minute) a task's finish date can be delayed without delaying the project's finish date.
Public fieldStatic memberCode exampleType
The type of a task.
Public fieldStatic memberCode exampleUid
The unique Id of a task.
Public fieldStatic memberCode exampleWarning
Represents the flag which indicates that task has schedule discrepancies.
Public fieldStatic memberCode exampleWBS
Work breakdown structure (WBS) codes.
Public fieldStatic memberCode exampleWBSLevel
The rightmost WBS level of a task.
Public fieldStatic memberCode exampleWork
The total time scheduled on a task for all assigned resources.
Public fieldStatic memberCode exampleWorkVariance
The difference between baseline work of a task and the currently scheduled work.
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