ComponentOne CalendarView for WinForms
C1.Globalization Namespace / JapaneseCalendarEx Class / IsLeapDay Method / IsLeapDay(Int32,Int32,Int32,Int32) Method
An integer that represents the year.
A positive integer that represents the month.
A positive integer that represents the day.
An integer that represents the era.

In This Topic
    IsLeapDay(Int32,Int32,Int32,Int32) Method
    In This Topic
    When overridden in a derived class, determines whether the specified date in the specified era is a leap day.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function IsLeapDay( _
       ByVal year As Integer, _
       ByVal month As Integer, _
       ByVal day As Integer, _
       ByVal era As Integer _
    ) As Boolean
    public override bool IsLeapDay( 
       int year,
       int month,
       int day,
       int era
    )

    Parameters

    year
    An integer that represents the year.
    month
    A positive integer that represents the month.
    day
    A positive integer that represents the day.
    era
    An integer that represents the era.

    Return Value

    true if the specified day is a leap day; otherwise, false.
    Exceptions
    ExceptionDescription
    year is outside the range supported by the calendar. -or- month is outside the range supported by the calendar. -or- day is outside the range supported by the calendar. -or- era is outside the range supported by the calendar.
    See Also