EastAsianLunisolarCalendar.GetDaysInMonth(Int32, Int32, Int32) 方法

定义

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

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

参数

year
Int32

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

month
Int32

一个从 1 到 12(在平年中)或从 1 到 13(在闰年中)的整数,用于表示月份。An integer from 1 through 12 in a common year, or 1 through 13 in a leap year, that represents the month.

era
Int32

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

返回

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

异常

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

注解

如果参数为第二个月, 则GetDaysInMonth方法返回28或 29 year , 具体取决于参数是否为闰年。 monthIf the month parameter is the second month, the GetDaysInMonth method returns 28 or 29, depending on whether the year parameter is a leap year.

适用于