HijriCalendar.GetLeapMonth(Int32, Int32) 方法

定义

计算指定年份和纪元的跃点月。

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
abstract member GetLeapMonth : int * int -> int
override this.GetLeapMonth : int * int -> int
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer

参数

year
Int32

一年。

era
Int32

一个时代。 指定 CurrentEraHijriEra

返回

始终为 0, HijriCalendar 因为该类型不支持跃月的概念。

属性

例外

year 小于 Hijri 日历年 1 或大于 9666 年。

-或-

era 不是 CurrentEraHijriEra

注解

在支持跃月概念的日历中,可以在特定月份之后或在一年内的任何月份之后发生跃点月。 例如,该方法 GetMonth 返回一个介于 1 和 13 之间的数字,该数字指示与指定日期关联的月份。 如果一年八至九个月之间有一个跃点月,则 GetMonth 该方法返回第八个月为 8,第八个月返回 9,第九个月返回 10。

适用于