'Usage Dim months As Integer Dim instance As New TdIntervalMonth(months)
Parameters
- months
- Number of months.
'Usage Dim months As Integer Dim instance As New TdIntervalMonth(months)
Exception | Description |
---|---|
OverflowException | The months parameter specifies a TdIntervalMonth value less than TdIntervalMonth.MinValue or greater than TdIntervalMonth.MaxValue. |
The number of months is evaluated against TdIntervalMonth.MinValue and and TdIntervalMonth.MaxValue to determine if the values are exceeded. The TdIntervalMonth.Precision is then calculated from the number of digits contained within the interval month component.
For example, a month value of 99 results in a precision of 2 representing 2 significant digits in the month.
A year value of 10020 exceeds the the maximum value of '9999-11' generating an exception.
Negative constructor parameters may be supplied to represent negative durations of duration.
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