ProjectTask
OfficeIMO.Project
A task or summary in a project hierarchy; stored schedule values remain distinct from calculation.
Inheritance
- ProjectObject
- ProjectEntity
- ProjectNamedEntity
- ProjectTask
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.
Returned or exposed by 23
- Property ProjectAssignment.Task
- Property ProjectDependency.Predecessor
- Property ProjectDependency.Successor
- Method ProjectDocument.AddRecurringTask
- Property ProjectDocument.AllTasks
- Method ProjectTask.After
- Method ProjectTask.Assign
- Method ProjectTask.SetAlias
- Method ProjectTask.SetCalendar
- Method ProjectTask.SetDates
- Method ProjectTask.SetDuration
- Method ProjectTask.SetManual
- Method ProjectTask.SetMilestone
- Method ProjectTask.SetName
- Method ProjectTask.SetNotes
- Method ProjectTask.SetText
- Method ProjectTask.SetWork
- Property ProjectTask.Parent
- Method ProjectTaskCollection.Add
- Method ProjectTaskCollection.AddSummary
- Method ProjectTaskCollection.GetByUid
- Method ProjectTaskCollection.GetEnumerator
- Property ProjectTaskCollection.Item
Accepted by parameters 6
- Method ProjectAssignmentCollection.Add
- Method ProjectDependencyCollection.Add
- Method ProjectDependencyCollection.Add
- Method ProjectDocument.AddRecurringTask
- Method ProjectTask.MoveTo
- Method ProjectTaskCollection.Remove
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
- type OfficeIMO.Project.ProjectDependencyType = FinishToStart
- lag OfficeIMO.Project.ProjectDuration? = null
Returns
ProjectTaskpublic ProjectTask Assign(string alias, ProjectUnits? units = null) #Queues a resource assignment; ProjectDocument.End validates and applies the batch.
Parameters
- alias string
- units OfficeIMO.Project.ProjectUnits? = null
Returns
ProjectTaskpublic void MoveTo(ProjectTask? parent, int? index = null) #Moves this task and its children, retaining identities and relationships.
Parameters
- parent OfficeIMO.Project.ProjectTask?
- index int? = null
public ProjectTask SetAlias(string alias) #Registers an explicit document-local alias for deferred relationships, without persisting it.
Parameters
- alias string
Returns
ProjectTaskpublic ProjectTask SetCalendar(ProjectCalendar value) #Assigns an explicit task calendar.
Parameters
- value OfficeIMO.Project.ProjectCalendar
Returns
ProjectTaskpublic ProjectTask SetDates(DateTime start, DateTime finish) #Sets stored start and finish dates without scheduling.
Parameters
- start System.DateTime
- finish System.DateTime
Returns
ProjectTaskpublic ProjectTask SetDuration(ProjectDuration value) #Sets stored duration without calculating dates.
Parameters
- value OfficeIMO.Project.ProjectDuration
Returns
ProjectTaskpublic ProjectTask SetManual(bool value = true) #Sets manual scheduling mode.
Parameters
- value bool = true
Returns
ProjectTaskpublic ProjectTask SetName(string value) #Sets the task name.
Parameters
- value string
Returns
ProjectTaskpublic ProjectTask SetNotes(string value) #Sets task notes.
Parameters
- value string
Returns
ProjectTaskpublic ProjectTask SetText(string fieldId, string value) #Sets a custom field's text by its Microsoft Project field ID.
Parameters
- fieldId string
- value string
Returns
ProjectTaskpublic ProjectTask SetWork(ProjectWork value) #Sets stored work without calculating dates.
Parameters
- value OfficeIMO.Project.ProjectWork
Returns
ProjectTaskInherited Methods
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? Hyperlink { get; set; } #Stored hyperlink; 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 decimal? TotalSlackMinutes { get; set; } #Stored signed total float in working minutes.
public decimal? FreeSlackMinutes { get; set; } #Stored signed free float in working minutes.