Version

GetDuration Method

Returns the duration of this Task, optionally adjusting the returned value to remove non-working hours.
Syntax
'Declaration
 
Public Function GetDuration( _
   ByVal workingHoursOnly As Boolean _
) As Infragistics.Win.FormattedTimeSpan
public Infragistics.Win.FormattedTimeSpan GetDuration( 
   bool workingHoursOnly
)

Parameters

workingHoursOnly
A boolean value indicating whether non-working hours should be removed from the returned value. Specify false for the actual time spanned by the task.

Return Value

A FormattedTimeSpan structure, which contains the span of time as well as the format, i.e., weeks, days, hours, or minutes.
Remarks

When the UltraCalendarInfo's TaskWorkingHourMode property is set to 'AutoAdjust', a task's Duration property can return a different value than the difference between the task's starting and ending times. This is because the Duration property removes intervening non-working hours from the amount of time spanned by the task. The GetDuration method provides a way to obtain either the actual time spanned, or the effective duration of the task, depending on the value of the workingHoursOnly parameter.

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