GYearMonth Constructor (long, int)GYearMonth Constructor (Long, Integer)GYearMonth Constructor (long, int)

Initializes a new instance of the GYearMonthGYearMonthGYearMonth structure with the specified year and month, but without a specified time zone.

Syntax

Public Sub New ( _
    year As Long, _
    month As Integer _
)
public GYearMonth(
    long year,
    int month
)
public:
GYearMonth(
    long year, 
    int month
)
 

Parameters

year

Type: System.Int64System.Int64System::Int64

The calendar year.

month

Type: System.Int32System.Int32System::Int32

The month of the year.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException month is outside the range 1 to 12, or year is outside the range MinYearMinYearMinYear to MaxYearMaxYearMaxYear or is zero.