Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ProjectTask

OfficeIMO.Project

Namespace
OfficeIMO.Project
Assembly
OfficeIMO.Project
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

A task or summary in a project hierarchy; stored schedule values remain distinct from calculation.

Inheritance

Usage

Explore 29 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 6

Methods

public ProjectTask After(string alias, ProjectDependencyType type = FinishToStart, ProjectDuration? lag = null) #

Queues a dependency on a forward task alias; ProjectDocument.End validates and applies the batch.

Parameters

alias string required
type OfficeIMO.Project.ProjectDependencyType = FinishToStart optional
lag OfficeIMO.Project.ProjectDuration? = null optional
public ProjectTask Assign(string alias, ProjectUnits? units = null) #

Queues a resource assignment; ProjectDocument.End validates and applies the batch.

Parameters

alias string required
units OfficeIMO.Project.ProjectUnits? = null optional
public void MoveTo(ProjectTask? parent, int? index = null) #

Moves this task and its children, retaining identities and relationships.

Parameters

parent OfficeIMO.Project.ProjectTask? required
index int? = null optional
public ProjectTask SetAlias(string alias) #

Registers an explicit document-local alias for deferred relationships, without persisting it.

Parameters

alias string required
public ProjectTask SetCalendar(ProjectCalendar value) #

Assigns an explicit task calendar.

Parameters

value OfficeIMO.Project.ProjectCalendar required
public ProjectTask SetDates(DateTime start, DateTime finish) #

Sets stored start and finish dates without scheduling.

Parameters

start System.DateTime required
finish System.DateTime required
public ProjectTask SetDuration(ProjectDuration value) #

Sets stored duration without calculating dates.

Parameters

value OfficeIMO.Project.ProjectDuration required
public ProjectTask SetManual(bool value = true) #

Sets manual scheduling mode.

Parameters

value bool = true optional
public ProjectTask SetMilestone() #

Marks a zero-duration milestone.

public ProjectTask SetName(string value) #

Sets the task name.

Parameters

value string required
public ProjectTask SetNotes(string value) #

Sets task notes.

Parameters

value string required
public ProjectTask SetText(string fieldId, string value) #

Sets a custom field's text by its Microsoft Project field ID.

Parameters

fieldId string required
value string required
public ProjectTask SetWork(ProjectWork value) #

Sets stored work without calculating dates.

Parameters

value OfficeIMO.Project.ProjectWork required

Properties

public ProjectCollection<ProjectTimephasedValue> TimephasedData { get; } #

Compact source timephased intervals.

public ProjectCollection<ProjectBaseline> Baselines { get; } #

Stored baseline snapshots.

public ProjectCollection<ProjectCustomFieldValue> CustomFields { get; } #

Custom values and lookup references.

public ProjectCollection<ProjectCustomFieldValue> OutlineCodes { get; } #

Outline-code selections referencing hierarchical lookup values.

public ProjectCalendar? Calendar { get; set; } #

Explicit calendar reference; null means no explicit calendar on this object.

public ProjectTaskCollection Children { get; } #

Immediate child tasks in outline order.

public ProjectTask? Parent { get; internal set; } #

Parent summary, or null for a top-level task.

public bool IsSummary { get; } #

True for a summary task, including an imported summary with no modeled children.

public int? DisplayId { get; set; } #

Display row identifier, separate from the stable UID.

public string? Wbs { get; set; } #

Stored wbs; null represents an absent source value.

public ProjectDuration? Duration { get; set; } #

Stored duration; null represents an absent source value.

public ProjectDuration? ActualDuration { get; set; } #

Stored actual duration; null represents an absent source value.

public ProjectDuration? RemainingDuration { get; set; } #

Stored remaining duration; null represents an absent source value.

public ProjectWork? Work { get; set; } #

Stored work; null represents an absent source value.

public ProjectWork? ActualWork { get; set; } #

Stored actual work; null represents an absent source value.

public ProjectWork? RemainingWork { get; set; } #

Stored remaining work; null represents an absent source value.

public DateTime? Start { get; set; } #

Stored local project date; null preserves an absent value.

public DateTime? Finish { get; set; } #

Stored local project date; null preserves an absent value.

public DateTime? ActualStart { get; set; } #

Stored local project date; null preserves an absent value.

public DateTime? ActualFinish { get; set; } #

Stored local project date; null preserves an absent value.

public DateTime? Deadline { get; set; } #

Stored local project date; null preserves an absent value.

public DateTime? ConstraintDate { get; set; } #

Stored local project date; null preserves an absent value.

public ProjectConstraintType? ConstraintType { get; set; } #

Stored constraint type; null represents an absent source value.

public ProjectTaskType? Type { get; set; } #

Stored type; null represents an absent source value.

public bool? IsManual { get; set; } #

Stored is manual; null represents an absent source value.

public bool? IsMilestone { get; set; } #

Stored is milestone; null represents an absent source value.

public bool? EffortDriven { get; set; } #

Stored effort driven; null represents an absent source value.

public bool? IsActive { get; set; } #

Stored is active; null represents an absent source value.

public bool? IsNull { get; set; } #

Stored is null; null represents an absent source value.

public bool? IsCritical { get; set; } #

Stored is critical; null represents an absent source value.

public int? PercentComplete { get; set; } #

Stored percent complete; null represents an absent source value.

public int? PercentWorkComplete { get; set; } #

Stored percent work complete; null represents an absent source value.

public int? PhysicalPercentComplete { get; set; } #

Stored physical percent complete; null represents an absent source value.

public int? Priority { get; set; } #

Stored priority; null represents an absent source value.

public decimal? Cost { get; set; } #

Stored cost; null represents an absent source value.

public decimal? ActualCost { get; set; } #

Stored actual cost; null represents an absent source value.

public decimal? RemainingCost { get; set; } #

Stored remaining cost; null represents an absent source value.

public decimal? FixedCost { get; set; } #

Stored fixed cost; null represents an absent source value.

public string? Notes { get; set; } #

Stored notes; null represents an absent source value.

public string? Contact { get; set; } #

Stored contact; null represents an absent source value.

public string? HyperlinkAddress { get; set; } #

Stored hyperlink address; null represents an absent source value.

public bool? LevelingCanSplit { get; set; } #

Whether explicit resource leveling may interrupt remaining work. False permits delays only.

public bool? IsRecurring { get; set; } #

Whether this stored task belongs to an expanded recurring series. This marker does not contain or regenerate the native recurrence rule.

public ProjectDuration? LevelingDelay { get; set; } #

Explicit delay from the dependency/constraint early-start anchor. Working and elapsed delays retain their different calendar semantics.

public bool? IgnoreResourceCalendar { get; set; } #

Use the explicit task calendar without intersecting resource calendars.

public ProjectCostAccrual? FixedCostAccrual { get; set; } #

When the task's fixed cost accrues; null uses prorated accrual.

public DateTime? Stop { get; set; } #

End of the recorded completed portion, separate from task finish.

public DateTime? Resume { get; set; } #

Stored beginning of remaining work after a progress interruption.

public ProjectEarnedValueMethod? EarnedValueMethod { get; set; } #

Completion measure used to calculate earned value.

public DateTime? EarlyStart { get; set; } #

Stored earliest start, independent of a new calculation result.

public DateTime? EarlyFinish { get; set; } #

Stored earliest finish.

public DateTime? LateStart { get; set; } #

Stored latest start.

public DateTime? LateFinish { get; set; } #

Stored latest finish.

public decimal? TotalSlackMinutes { get; set; } #

Stored signed total float in working minutes.

public decimal? FreeSlackMinutes { get; set; } #

Stored signed free float in working minutes.