JapaneseCalendar::TwoDigitYearMax Property
Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.
Assembly: mscorlib (in mscorlib.dll)
public: virtual property int TwoDigitYearMax { int get () override; void set (int value) override; }
Property Value
Type: System::Int32The last year of a 100-year range that can be represented by a 2-digit year.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value specified in a set operation is less than 99. -or- The value specified in a set operation is greater than 8011 (or MaxSupportedDateTime.Year). |
| InvalidOperationException | In a set operation, the current instance is read-only. |
This property implements Calendar::TwoDigitYearMax.
Because the year in the Japanese calendar is typically less than four digits long, this implementation returns 99 by default and does not affect the return value of ToFourDigitYear.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.