PersianCalendar::IsLeapYear Method (Int32, Int32)
.NET Framework (current version)
Determines whether the specified year in the specified era is a leap year.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- year
-
Type:
System::Int32
An integer from 1 through 9378 that represents the year.
- era
-
Type:
System::Int32
An integer from 0 through 1 that represents the era.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | year or era is outside the range supported by this calendar. |
Starting with the .NET Framework 4.6, the implementation of the PersianCalendar class has changed from an observational algorithm to the Hijri solar algorithm. As a result, the IsLeapYear method may return different values when run on .NET Framework 4.6 than when run on previous versions of the .NET Framework.
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 5.0
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 5.0
Show: