ComponentOne MultiSelect for WinForms
C1.Globalization Namespace / JapaneseCalendarEx Class / GetMonthsInYear Method / GetMonthsInYear(Int32,Int32) Method
An integer that represents the year.
An integer that represents the era.

In This Topic
    GetMonthsInYear(Int32,Int32) Method
    In This Topic
    When overridden in a derived class, returns the number of months in the specified year in the specified era.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function GetMonthsInYear( _
       ByVal year As Integer, _
       ByVal era As Integer _
    ) As Integer
    public override int GetMonthsInYear( 
       int year,
       int era
    )

    Parameters

    year
    An integer that represents the year.
    era
    An integer that represents the era.

    Return Value

    The number of months in the specified year in the specified era.
    Exceptions
    ExceptionDescription
    year is outside the range supported by the calendar. -or- era is outside the range supported by the calendar.
    See Also