Tsk

Contents
[ ]

Tsk class

Represents properties of Task object.

public static class Tsk

Fields

Name Description
static readonly ActivityId Represents activity id field - a task’s unique identifier used by Primavera. (only applicable to Primavera projects).
static readonly ActualCost Costs incurred for work already performed by resources on their tasks, together with any other recorded costs associated with the task.
static readonly ActualDuration The span of actual working time for a task, based on the scheduled duration and current remaining work or percent complete.
static readonly ActualFinish The date when a task was completed.
static readonly ActualOvertimeCost Costs incurred for overtime work already performed on tasks by assigned resources.
static readonly ActualOvertimeWork The actual amount of overtime work already performed by resources assigned to tasks.
static readonly ActualOvertimeWorkProtected The duration through which actual overtime work is protected.
static readonly ActualStart The date and time that a task actually began.
static readonly ActualWork The amount of work that has already been done by resources assigned to tasks.
static readonly ActualWorkProtected The duration through which actual work is protected. Reading supported for XML format only.
static readonly ACWP Costs incurred for work already done on a task, up to the project status date or today’s date.
static readonly BCWP The cumulative value of the task’s percent complete multiplied by the time phased baseline costs.
static readonly BCWS The cumulative time phased baseline costs up to the status date or today’s date.
static readonly BudgetCost Budget costs for budget cost resources. Budget resources are assigned only to the project summary task.
static readonly BudgetWork Budget work for budget work and material resources. Budget resources are assigned only to the project summary task.
static readonly Calendar The task calendar.
static readonly CommitmentFinish The finish date of a delivery. Reading supported for XML format only.
static readonly CommitmentStart The start date of a delivery. Reading supported for XML format only.
static readonly CommitmentType Determines whether a task has an associated delivery or a dependency on an associated delivery. Reading supported for XML format only.
static readonly ConstraintDate The specific date associated with the constraint type.
static readonly ConstraintType Provides choices for the type of constraint that can be applied for scheduling a task.
static readonly Contact The name of an individual responsible for a task.
static readonly Cost 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.
static readonly CostVariance The difference between the baseline cost and total cost for a task, resource, or assignment.
static readonly Created The date when a task was created.
static readonly CV The difference between the baseline cost and total cost for a task. Cost Variance = Cost - Baseline Cost
static readonly Deadline A target date that indicates when a task is to be completed.
static readonly DisplayAsSummary Determines whether the task should be displayed as a summary task. Reading supported for XML format only.
static readonly DisplayOnTimeline Specifies whether a task should be displayed on a timeline view.
static readonly Duration 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.
static readonly DurationFormat Task duration format.
static readonly DurationText Returns the task’s duration text.
static readonly DurationVariance The difference between the baseline duration of a task and the total duration (current estimate) of a task.
static readonly EarlyFinish 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.
static readonly EarlyStart The earliest date that a task could possibly begin, based on the early start dates of predecessor and successor tasks and other constraints.
static readonly EarnedValueMethod Determines whether the % Complete or Physical % Complete field should be used to calculate budgeted cost of work performed (BCWP).
static readonly ExternalId If a task is an external task it contains the task’s external Id.
static readonly ExternalTaskProject The source location and task identifier of an external task.
static readonly Finish The scheduled finish date of a task.
static readonly FinishSlackTimeSpan The duration between the Early Finish and Late Finish dates.
static readonly FinishText Returns the task’s finish text.
static readonly FinishVariance The time that represents the difference between the baseline finish date of a task or assignment and its current finish date.
static readonly FixedCost Shows any non resource task expense.
static readonly FixedCostAccrual Determines choices for how and when fixed costs are to be charged, or accrued, to the cost of a task.
static readonly FreeSlackTimeSpan The time that a task can be delayed without delaying any successor tasks.
static readonly Guid The generated unique identification codes for a task.
static readonly HasOverallocatedResource Indicates whether the task has an resource assigned which has more work on assigned tasks than can be completed within normal working capacity.
static readonly HideBar Determines whether the Gantt bar of a task is hidden when displayed in Microsoft Project.
static readonly Hyperlink The title or explanatory text for a hyperlink associated with a task.
static readonly HyperlinkAddress The address for a hyperlink associated with a task.
static readonly HyperlinkSubAddress The specific location in a document in a hyperlink associated with a task.
static readonly Id The position identifier of a task within the list of tasks.
static readonly IgnoreResourceCalendar Determines whether the scheduling of the task considers the calendars of the resources assigned to the task.
static readonly IgnoreWarnings Indicates whether to hide the schedule conflict warning indicator in Microsoft Project.
static readonly IsActive Determines whether a task is active. Inactive tasks no longer affect other tasks or the overall Project schedule.
static readonly IsCritical Determines whether a task is on the critical path.
static readonly IsEffortDriven Determines whether the scheduling for the task is effort-driven scheduling.
static readonly IsEstimated Determines whether a task is estimated.
static readonly IsExpanded Determines whether a summary task is expanded or not in GanttChart view.
static readonly IsExternalTask Determines whether a task is external.
static readonly IsManual Determines whether a task is manually scheduled.
static readonly IsMarked Shows whether a task is marked for further action or identification of some kind.
static readonly IsMilestone Determines whether a task is a milestone.
static readonly IsNull Determines whether a task is a null task.
static readonly IsOverallocated 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.
static readonly IsPublished Determines whether the current task should be published to Project Server with the rest of the project.
static readonly IsRecurring Determines whether a task is part of a series of recurring tasks.
static readonly IsResumeValid Determines whether a task can be resumed.
static readonly IsRollup Determines whether information about the subtask Gantt bars will be rolled up to the summary task bar.
static readonly IsSubproject Determines whether a task is an inserted project.
static readonly IsSubprojectReadOnly Determines whether a subproject is read-only.
static readonly IsSummary Determines whether a task is a summary task.
static readonly LateFinish The latest date that a task can finish without delaying the finish of the project.
static readonly LateStart The latest date that a task can start without delaying the finish of the project.
static readonly LevelAssignments Determines whether the leveling function can delay and split individual assignments in order to resolve over allocations.
static readonly LevelingCanSplit Determines whether the resource leveling function can cause splits on remaining work on this task.
static readonly LevelingDelay The time that a task is to be delayed from its early start date because of resource leveling.
static readonly LevelingDelayFormat The format of expressing the duration of a delay.
static readonly ManualDuration Defines manually scheduled duration of a task.
static readonly ManualFinish Defines manually scheduled finish of a task.
static readonly ManualStart Defines manually scheduled start of a task.
static readonly Name A task’s name.
static readonly NotesRTF The text notes in RTF format.
static readonly NotesText Notes’ plain text extracted from RTF data.
static readonly OutlineLevel The outline level of a task.
static readonly OutlineNumber The number that represents a task’s position in the hierarchical outline structure.
static readonly OvertimeCost The total overtime cost for a task, for a resource on all assigned tasks, or for a resource assignment.
static readonly OvertimeWork The amount of overtime scheduled to be performed by all resources assigned to a task.
static readonly PercentComplete The current status of a task, expressed as the percentage of the task’s duration that has been completed.
static readonly PercentWorkComplete The current status of a task expressed as the percentage of work that has been completed.
static readonly PhysicalPercentComplete Percent complete value that can be be used as an alternative for calculating budgeted cost of work performed (BCWP).
static readonly PreleveledFinish The finish date of a task as it was before resource leveling was done.
static readonly PreleveledStart The start date of a task as it was before resource leveling was done.
static readonly Priority 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.
static readonly RegularWork The total amount of non overtime work scheduled to be performed by resources.
static readonly RemainingCost The remaining scheduled expense that will be incurred in completing the remaining scheduled work.
static readonly RemainingDuration The time that is required to complete the unfinished part of a task.
static readonly RemainingOvertimeCost The remaining scheduled overtime expense for a task.
static readonly RemainingOvertimeWork The amount of remaining scheduled overtime time.
static readonly RemainingWork The time still required to complete a task or set of tasks.
static readonly Resume The date that the remaining part of a task is scheduled to resume after entering any progress.
static readonly Start The scheduled start date of a task.
static readonly StartSlackTimeSpan The duration between the Early Start and Late Start dates.
static readonly StartText Returns the task’s start text.
static readonly StartVariance The time that represents the difference between a baseline start date of a task or assignment and its currently scheduled start date.
static readonly StatusManager The name of the enterprise resource who is to receive status updates for the current task from resources.
static readonly Stop The date that represents the end of the actual portion of a task.
static readonly SubprojectName The source location of a subproject.
static readonly SV The earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.
static readonly TotalSlackTimeSpan The time a task’s finish date can be delayed without delaying the project’s finish date.
static readonly Type The type of a task.
static readonly Uid The unique Id of a task.
static readonly Warning Represents the flag which indicates that task has schedule discrepancies.
static readonly WBS Work breakdown structure (WBS) codes.
static readonly WBSLevel The rightmost WBS level of a task.
static readonly Work The total time scheduled on a task for all assigned resources.
static readonly WorkVariance 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