GregorianCalendar.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
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer

參數

year
Int32

一年。

era
Int32

一紀元。 請指定 ADEraGregorianCalendar.Eras[Calendar.CurrentEra]

傳回

一定是 0,因為西曆無法辨識閏月。

屬性

例外狀況

year 小於西曆年度 1 年或大於西曆 9999 年。

-或-

era 不是 ADEraGregorianCalendar.Eras[Calendar.CurrentEra]

適用於