ISPCalendar.IsYearLeap Method (Int32, Int32)

Returns a Boolean value that indicates whether the specified year in the specified era is a leap year.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Function IsYearLeap ( _
    year As Integer, _
    era As Integer _
) As Boolean
'Usage
Dim instance As ISPCalendar
Dim year As Integer
Dim era As Integer
Dim returnValue As Boolean

returnValue = instance.IsYearLeap(year, _
    era)
bool IsYearLeap(
    int year,
    int era
)

Parameters

  • year
    Type: System.Int32

    An integer value that represents the year.

  • era
    Type: System.Int32

    An integer value that represents the era.

Return Value

Type: System.Boolean
true if the year is a leap year; otherwise, false.

See Also

Reference

ISPCalendar Interface

ISPCalendar Members

IsYearLeap Overload

Microsoft.SharePoint.Utilities Namespace