YearMonthDuration.Months PropertyYearMonthDuration.Months PropertyYearMonthDuration::Months Property

Gets the months component of the current YearMonthDurationYearMonthDurationYearMonthDuration.

Syntax

Public ReadOnly Property Months As Integer
        Get
public int Months { get; }
public:
property int Months {
    int get();
}
 

Property Value

Type: System.Int32System.Int32System::Int32

The months component of this duration. The values range between -11 and 11.