ISPCalendar.IsYearLeap method (Int32, Int32)
傳回布林值,指出在指定紀元的指定的年份是否為閏年。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Function IsYearLeap ( _
year As Integer, _
era As Integer _
) As Boolean
'用途
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
)
參數
year
Type: System.Int32整數值,表示年份。
era
Type: System.Int32表示紀元的整數值。
傳回值
Type: System.Boolean
true如果年是閏年。否則, false。