Version

TaskWorkingHourMode Enumeration

Constants which describe whether a task'sStartDateTime, Duration, and EndDateTime are automatically adjusted to account for non-workdays and non-working hours.
Syntax
'Declaration
 
Public Enum TaskWorkingHourMode 
   Inherits System.Enum
public enum TaskWorkingHourMode : System.Enum 
Members
MemberDescription
AutoAdjust

The task's effective duration is automatically adjusted such that the task's EndDateTime reflects the value of the task duration, as well as any non-working time across which the task spans. For example, a task that starts on a Friday and has a duration of two days would end on Monday rather than on Saturday (assuming that Saturday and Sunday are both designated as non-working days).

Under this setting, days whose corresponding IsWorkDay property returns false are "skipped" when the task's effective duration is calculated, which extends the task's end date/time accordingly. Ranges of time which fall outside the range defined by the WorkDayStartTime and WorkDayEndTime properties (or the WorkingHours collection if it is populated) are also added to the task's effective duration, extending the task's end date/time by that amount of time as well.

Attempting to set the task's StartDateTime property to a value which falls on a non-workday or outside working hours causes the TaskConstraintViolation event to fire.

ManualThe task's properties are not automatically adjusted. The task's StartDateTime, Duration, and EndDateTime are always depicted "as is", without any adjustment around non-working hours.
Requirements

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

See Also