Version

ProjectTaskConstraintWarningAction Enumeration

Represents the various actions possible when a warning occurs with one of the task constraints.
Syntax
'Declaration
 
Public Enum ProjectTaskConstraintWarningAction 
   Inherits System.Enum
public enum ProjectTaskConstraintWarningAction : System.Enum 
Members
MemberDescription
CancelCancel the change which caused the warning. If other warnings were previously accepted and the current warning is cancelled, they will be cancelled as well.
DoNotModifyConstraintAllow the action or conflict without modifying the constraint. Note: this value cannot be used for the ConstraintConflictsWithSubtaskConstraint warning, because the constraint must be modified in this situation. For the ChangeConstraintType warning, DoNotModifyConstraint can be used in some situations but not others. For example, when setting the ConstraintDate to null, the ConstraintType must be changed to AsSoonAsPossible or AsLateAsPossible. However, when setting the Start of a task in a project scheduled from the start date, the ConstraintType will be changed to StartNoEarlierThan and the ConstraintDate will be changed to the new Start value unless the DoNotModifyConstraint action is used.
ModifyConstraintModify the associated task's constraint by using the ProjectTaskConstraintWarningEventArgs.NewConstraintType and ProjectTaskConstraintWarningEventArgs.NewConstraintDateLocal.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also