HijriCalendar.GetLeapMonth(Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
计算指定年份和纪元的跃点月。
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
一个时代。 指定 CurrentEra 或 HijriEra。
返回
始终为 0, HijriCalendar 因为该类型不支持跃月的概念。
- 属性
例外
注解
在支持跃月概念的日历中,可以在特定月份之后或在一年内的任何月份之后发生跃点月。 例如,该方法 GetMonth 返回一个介于 1 和 13 之间的数字,该数字指示与指定日期关联的月份。 如果一年八至九个月之间有一个跃点月,则 GetMonth 该方法返回第八个月为 8,第八个月返回 9,第九个月返回 10。