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

Initializes a new instance of the GDayGDayGDay structure with the specified day of the month and optional time zone.

Syntax

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

Parameters

day

Type: System.Int32System.Int32System::Int32

The day of the month.

timeZone

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

The optional time zone.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException day is outside the range 1 to 31.