'Declaration Public ReadOnly Property Years As Integer
'Usage Dim instance As TdIntervalYearToMonth Dim value As Integer value = instance.Years
public int Years {get;}
'Declaration Public ReadOnly Property Years As Integer
'Usage Dim instance As TdIntervalYearToMonth Dim value As Integer value = instance.Years
public int Years {get;}
Exception | Description |
---|---|
TdException | This property is not available when this instance is TdIntervalYearToMonth.Null. |
A TdIntervalYearToMonth is represented as [-]years-mm. The minus sign is optional and represents a negative interval of time. The years component represents years and the mm component represents months. The value of the Years property is the years component.
A negative interval will return all properties (Years, Months and TotalMonths) as negative values.
Product | Versions | Platforms |
---|---|---|
.NET | 6, 7 | Windows, Linux, MacOS |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |