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

時代 (年号) ADEra または GregorianCalendar.Eras[Calendar.CurrentEra] を指定します。

返品

グレゴリオ暦は閏月を認識しないため、常に 0 です。

属性

例外

year がグレゴリオ暦の年 1 より小さいか、グレゴリオ暦の暦年 9999 より大きい。

-又は-

eraADEra または GregorianCalendar.Eras[Calendar.CurrentEra]ではありません。

適用対象