Version

TaskWorkingHourMode Property

Returns or sets a value indicating whether a task's duration is automatically adjusted to account for non-working hours.
Syntax
'Declaration
 
Public Property TaskWorkingHourMode As TaskWorkingHourMode
public TaskWorkingHourMode TaskWorkingHourMode {get; set;}
Remarks

By default, a task's Duration includes any non-working hours/days with which the task coincides. When the TaskWorkingHourMode property is set to 'AutoAdjust', non-working hours/days are automatically added to the task duration when determining the value of the EndDateTime property, so that the effective value includes non-working time.

For example, assuming that Saturday and Sunday are considered non-working days, consider a three-day task that begins on a Friday. When TaskWorkingHourMode is set to 'Manual', the task ends on Sunday. When set to 'AutoAdjust', however, the non-working days and hours are added to the actual duration when determining the EndDateTime, and the task ends on the following Tuesday.

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