Version

FromFormatUnits Method

Routine used to create a ProjectDuration based on the specified number of units of the specified unit type.
Syntax
'Declaration
 
Public Shared Function FromFormatUnits( _
   ByVal count As Double, _
   ByVal format As ProjectDurationFormat, _
   Optional ByVal isEstimated As Boolean, _
   Optional ByVal minutesPerDay As Integer, _
   Optional ByVal minutesPerWeek As Integer, _
   Optional ByVal daysPerMonth As Integer _
) As ProjectDuration
public static ProjectDuration FromFormatUnits( 
   double count,
   ProjectDurationFormat format,
   bool isEstimated,
   int minutesPerDay,
   int minutesPerWeek,
   int daysPerMonth
)

Parameters

count
The number of units defined by the format parameter.
format
The type of unit from which to calculate the duration.
isEstimated
Indicates if the value represents an estimate
minutesPerDay
The number of working minutes per day. This defaults to 480 (i.e. 8 hours).
minutesPerWeek
The number of working minutes per week. This defaults to 2400 (i.e. 40 hours).
daysPerMonth
The number of working days per month. This defaults to 20.

Return Value

The total number of minutes based for the specified format and count.
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