EastAsianLunisolarCalendar.GetDaysInYear(Int32, Int32) 方法

定义

计算指定纪元年份中的天数。Calculates the number of days in the specified year and era.

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

参数

year
Int32

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

era
Int32

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

返回

指定纪元年份中的天数。The number of days in the specified year and era.

异常

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

注解

方法返回365或 366, 具体取决year于参数是否为闰年。 GetDaysInYearThe GetDaysInYear method returns 365 or 366, depending on whether the year parameter is a leap year.

适用于