SPIntlCal.IsSupportedLocalYear method
傳回布林值,指出指定的行事曆類型是否支援指定的年份。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsSupportedLocalYear ( _
calType As SPCalendarType, _
year As Integer _
) As Boolean
'用途
Dim calType As SPCalendarType
Dim year As Integer
Dim returnValue As Boolean
returnValue = SPIntlCal.IsSupportedLocalYear(calType, _
year)
public static bool IsSupportedLocalYear(
SPCalendarType calType,
int year
)
參數
calType
Type: Microsoft.SharePoint.SPCalendarTypeSPCalendarType物件,表示行事曆類型。
year
Type: System.Int3232 位元整數,表示要評估的年份。
傳回值
Type: System.Boolean
true如果行事曆類型支援的年份。否則, false。