'Usage Dim minutes As Integer Dim precision As Byte Dim instance As New TdIntervalMinute(minutes, precision)
Parameters
- minutes
- Number of minutes.
- precision
- Number of significant digits of the day.
'Usage Dim minutes As Integer Dim precision As Byte Dim instance As New TdIntervalMinute(minutes, precision)
Exception | Description |
---|---|
OverflowException | The minutes parameter specifies a TdIntervalMinute value less than TdIntervalMinute.MinValue or greater than TdIntervalMinute.MaxValue. |
ArgumentOutOfRangeException | The precision parameter is outside the TdIntervalMinute.MinPrecision or TdIntervalMinute.MaxPrecision range of values."/>. |
ArgumentException | The precision parameter is not large enough to represent the number of minutes. |
The number of minutes is converted into a TdIntervalMinute and validated to determine if the TdIntervalMinute.MinValue or the TdIntervalMinute.MaxValue values have been exceeded. If the values are not exceeded but the resulting minutes component exceeds the supplied precision value, an exception is generated.
For example a constructor for TdIntervalMinute(444, 2) requests 444 minutes with a precision of 2. The resulting minutes value cannot be represented in 2 digits, therefore an exception is generated, even though the MinValue and the MaxValue values have not been exceeded.
Negative constructor parameters may be supplied to represent negative durations of time.
Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2