UmAlQuraCalendar.GetLeapMonth(Int32, Int32) 方法

定義

計算指定年份和紀元的閏月。

public:
 override int GetLeapMonth(int year, int era);
public override int GetLeapMonth (int year, int era);
override this.GetLeapMonth : int * int -> int
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer

參數

year
Int32

一年。

era
Int32

一紀元。 指定 UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra]UmAlQuraEra

傳回

一定是 0,因為 UmAlQuraCalendar 類別不支援閏月。

例外狀況

year 小於 1318 或大於 1450。

-或-

era 不是 UmAlQuraCalendar.Eras[UmAlQuraCalendar.CurrentEra]UmAlQuraEra

備註

在支援閏月概念的行事曆中,閏月可以在特定月份或一年中的任何月份之後發生。 例如,方法會 EastAsianLunisolarCalendar.GetMonth(DateTime) 傳回介於 1 到 13 之間的數位,指出與指定日期相關聯的月份。 如果一年的第八個月和第九個月之間有閏月,此方法 GetMonth 會傳回 8 代表第八個月、9 代表閏八個月,而第九個月則傳回 10。

適用於