YearMonthDuration.TotalMonths PropertyYearMonthDuration.TotalMonths PropertyYearMonthDuration::TotalMonths Property

Gets the value of the current YearMonthDurationYearMonthDurationYearMonthDuration expressed as a number of months.

Syntax

Public ReadOnly Property TotalMonths As Long
        Get
public long TotalMonths { get; }
public:
property long TotalMonths {
    long get();
}
 

Property Value

Type: System.Int64System.Int64System::Int64

The total number of months represented by this duration. The value can be positive or negative.