SPIntlCal.IsSupportedLocalYear 方法
返回一个布尔值,该值指示指定的日历类型是否支持指定的年份。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
类型:Microsoft.SharePoint.SPCalendarTypeSPCalendarType对象,该对象表示的日历的类型。
year
类型:System.Int32一个 32 位整数,表示要评估的年份。
返回值
类型:System.Boolean
true如果日历类型支持一年 ;否则为false。