EastAsianLunisolarCalendar.IsLeapYear(Int32, Int32) 方法

定义

确定指定纪元中的指定年份是否为闰年。Determines whether the specified year in the specified era is a leap year.

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

参数

year
Int32

一个整数,用于表示年份。An integer that represents the year.

era
Int32

一个整数,用于表示纪元。An integer that represents the era.

返回

如果指定的年是闰年,则为 true;否则为 falsetrue if the specified year is a leap year; otherwise, false.

异常

yearera 超出了此日历支持的范围。year or era is outside the range supported by this calendar.

适用于