YearMonthDuration Constructor (int, int)YearMonthDuration Constructor (Integer, Integer)YearMonthDuration Constructor (int, int)

Initializes a new instance of the YearMonthDurationYearMonthDurationYearMonthDuration structure with the specified duration in years and months.

Syntax

Public Sub New ( _
    year As Integer, _
    month As Integer _
)
public YearMonthDuration(
    int year,
    int month
)
public:
YearMonthDuration(
    int year, 
    int month
)
 

Parameters

year

Type: System.Int32System.Int32System::Int32

The number of years in the duration.

month

Type: System.Int32System.Int32System::Int32

The number of months in the duration.