[]
Returns the number of months in the specified year in the specified era.
public override int GetMonthsInYear(int year, int era)
Public Overrides Function GetMonthsInYear(year As Integer, era As Integer) As Integer
| Type | Name | Description |
|---|---|---|
| int | year | An integer that represents the year. |
| int | era | An integer that represents the era. |
| Type | Description |
|---|---|
| int | The return value is always 12. |
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | year is outside the range supported by the calendar.-or- era is outside the range supported by the calendar. |