GMonth Constructor (int, TimeZone?)GMonth Constructor (Integer, Nullable(Of TimeZone))GMonth Constructor (int, Nullable<TimeZone>)

Initializes a new instance of the GMonthGMonthGMonth structure with the specified month of the year and optional time zone.

Syntax

Public Sub New ( _
    month As Integer, _
    timeZone As Nullable(Of TimeZone) _
)
public GMonth(
    int month,
    Nullable<TimeZone> timeZone
)
public:
GMonth(
    int month, 
    Nullable<TimeZone> timeZone
)
 

Parameters

month

Type: System.Int32System.Int32System::Int32

The month of the year.

timeZone

Type: System.Nullable<T>System.Nullable(Of T)System::Nullable<T>

The optional time zone.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException month is outside the range 1 to 12.