GregorianCalendar.GetLeapMonth(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calculates the leap month for a specified year and era.
public:
override int GetLeapMonth(int year, int era);
public override int GetLeapMonth (int year, int era);
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetLeapMonth (int year, int era);
override this.GetLeapMonth : int * int -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetLeapMonth : int * int -> int
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer
Parameters
- year
- Int32
A year.
Returns
Always 0 because the Gregorian calendar does not recognize leap months.
- Attributes
Exceptions
year
is less than the Gregorian calendar year 1 or greater than the Gregorian calendar year 9999.
-or-
era
is not ADEra or GregorianCalendar.Eras[Calendar.CurrentEra]
.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.