EastAsianLunisolarCalendar.GetDaysInYear(Int32, Int32) 方法

定義

計算指定年份和紀元中的天數。

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

表示年份的整數。

era
Int32

表示紀元的整數。

傳回

指定年份和紀元中的天數。

例外狀況

yearera 在這個日曆所支援的範圍之外。

備註

方法會 GetDaysInYear 傳回 365 或 366,視參數是否 year 為閏年而定。

適用於