'Declaration Public Enum TaskConstraint Inherits System.Enum
public enum TaskConstraint : System.Enum
Member | Description |
---|---|
AsLateAsPossible | Schedules the task as late as it can without delaying subsequent tasks. The ConstraintDateTime is not used. If the task on which the constraint is being set is the predecessor for other tasks, a date is used that will not create a conflict with any of the dependent tasks. If the task is not a predecessor, the end date of the associated Project determines the effective constraining date. A TaskDependency never conflicts with the 'AsLateAsPossible' constraint since the constraining date is determined in that case by the dependency. |
AsSoonAsPossible | Schedules the task to start as early as it can. The ConstraintDateTime is not used. If the task on which the constraint is being set is linked to other tasks, a date is used that will not create a conflict with any of the dependent tasks. If the task is not a predecessor, the start date of the associated Project determines the effective constraining date, i.e., the task will begin on the same date as the project. A TaskDependency never conflicts with the 'AsSoonAsPossible' constraint since the constraining date is determined in that case by the dependency. |
FinishNoEarlierThan | Schedules the task to finish on or after the ConstraintDateTime. If no constraining date/time is specified, the EndDateTime is used. If the task is dependent on another task, i.e., its Dependencies collection has one or more items, the predecessor which causes the task to begin the latest determines its start, unless that date/time violates the constraint, in which case the constraint determines the ending date/time for the task. |
FinishNoLaterThan | Schedules the task to finish on or before the ConstraintDateTime. If no constraining date/time is specified, the EndDateTime is used. If the task is dependent on another task, i.e., its Dependencies collection has one or more items, the predecessor which causes the task to begin the latest determines its start. Setting a task's constraint to 'FinishNoLaterThan' when the task has a dependency will cause the TaskConstraintViolation event to fire, although a listener can opt to keep both the constraint and the dependency. In that case, the task remains linked to the predecessor, but the task times are then determined solely by the constraint. |
MustFinishOn | Schedules the task to finish on the ConstraintDateTime. A task whose ConstraintType is set to 'MustFinishOn' cannot be moved along the timeline. If no constraining date/time is specified, the EndDateTime is used. If the task is dependent on another task, i.e., its Dependencies collection has one or more items, the predecessor which causes the task to begin the latest determines its start. Setting a task's constraint to 'MustFinishOn' when the task has a dependency will cause the TaskConstraintViolation event to fire, although a listener can opt to keep both the constraint and the dependency. In that case, the task remains linked to the predecessor, but the task times are then determined solely by the constraint. |
MustStartOn | Schedules the task to begin on the ConstraintDateTime. A task whose ConstraintType is set to 'MustStartOn' cannot be moved along the timeline. If no constraining date/time is specified, the StartDateTime is used. If the task is dependent on another task, i.e., its Dependencies collection has one or more items, the predecessor which causes the task to begin the latest determines its start. Setting a task's constraint to 'MustStartOn' when the task has a dependency will cause the TaskConstraintViolation event to fire, although a listener can opt to keep both the constraint and the dependency. In that case, the task remains linked to the predecessor, but the task times are then determined solely by the constraint. |
StartNoEarlierThan | (Default) Schedules the task to begin on or after the ConstraintDateTime. If no constraining date/time is specified, the StartDateTime is used. If the task is dependent on another task, i.e., its Dependencies collection has one or more items, the predecessor which causes the task to begin the latest determines its start, unless that date/time violates the constraint, in which case the constraint determines the ending date/time for the task. |
StartNoLaterThan | Schedules the task to begin on or before the ConstraintDateTime. If no constraining date/time is specified, the EndDateTime is used. If the task is dependent on another task, i.e., its Dependencies collection has one or more items, the predecessor which causes the task to begin the latest determines its start. Setting a task's constraint to 'StartNoLaterThan' when the task has a dependency will cause the TaskConstraintViolation event to fire, although a listener can opt to keep both the constraint and the dependency. In that case, the task remains linked to the predecessor, but the task times are then determined solely by the constraint. |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2