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)
Available in Sandboxed Solutions: No
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.Int32An integer value that represents the year.
Return Value
Type: System.Boolean
true if the year is a leap year; otherwise, false.