Share via


ISPCalendar.IsYearLeap method (Int32)

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

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

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

returnValue = instance.IsYearLeap(year)
bool IsYearLeap(
    int year
)

Parameters

  • year
    Type: System.Int32

    An integer value that represents the year.

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