SPIntlCal.IsLocalYearLeap method
Returns a Boolean value that indicates whether the specified year is a leap year in the specified calendar type.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsLocalYearLeap ( _
calType As SPCalendarType, _
year As Integer _
) As Boolean
'Usage
Dim calType As SPCalendarType
Dim year As Integer
Dim returnValue As Boolean
returnValue = SPIntlCal.IsLocalYearLeap(calType, _
year)
public static bool IsLocalYearLeap(
SPCalendarType calType,
int year
)
Parameters
calType
Type: Microsoft.SharePoint.SPCalendarTypeAn SPCalendarType object that represents a calendar type.
year
Type: System.Int32A 32-bit integer that represents a year.
Return value
Type: System.Boolean
true if the year is a leap year; otherwise, false.