GYear Constructor (long, TimeZone?)GYear Constructor (Long, Nullable(Of TimeZone))GYear Constructor (long, Nullable<TimeZone>)
Initializes a new instance of the GYearGYearGYear structure with the specified calendar year and
optional time zone.
Parameters
- year
Type: System.Int64System.Int64System::Int64
The calendar year.
- timeZone
Type: System.Nullable<T>System.Nullable(Of T)System::Nullable<T>
The optional time zone.
Exceptions
Exception | Condition |
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException | year is outside the range MinYearMinYearMinYear to MaxYearMaxYearMaxYear or is zero. |