Calendar.GetMonthsInYear Method (Int32, Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
When overridden in a derived class, returns the number of months in the specified year in the specified era.
Assembly: mscorlib (in mscorlib.dll)
Public MustOverride Function GetMonthsInYear ( _ year As Integer, _ era As Integer _ ) As Integer
public abstract int GetMonthsInYear( int year, int era )
An integer that represents the year.
An integer that represents the era.
The number of months in the specified year in the specified era.
year is outside the range supported by the calendar.
era is outside the range supported by the calendar.
Notes to Inheritors
The derived class must support CurrentEra when it is passed as the era parameter. One way to support CurrentEra is by replacing it with the value stored in Eras, which is the value for the current era of the calendar.
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0