SPIntlCal.IsLocalYearLeap method
傳回布林值,指出指定的年份是否為閏年中指定的行事曆類型。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsLocalYearLeap ( _
calType As SPCalendarType, _
year As Integer _
) As Boolean
'用途
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
)
參數
calType
Type: Microsoft.SharePoint.SPCalendarTypeSPCalendarType物件,表示行事曆類型。
year
Type: System.Int3232 位元整數,表示一年。
傳回值
Type: System.Boolean
true如果年是閏年。否則, false。