SPIntlCal.IsLocalDateValid method (SPCalendarType, SimpleDate, Int32)
傳回布林值,指出指定的行事曆類型是否支援指定的日期。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsLocalDateValid ( _
calType As SPCalendarType, _
ByRef di As SimpleDate, _
iAdvance As Integer _
) As Boolean
'用途
Dim calType As SPCalendarType
Dim di As SimpleDate
Dim iAdvance As Integer
Dim returnValue As Boolean
returnValue = SPIntlCal.IsLocalDateValid(calType, _
di, iAdvance)
public static bool IsLocalDateValid(
SPCalendarType calType,
ref SimpleDate di,
int iAdvance
)
參數
calType
Type: Microsoft.SharePoint.SPCalendarTypeSPCalendarType物件,表示行事曆類型。
di
Type: Microsoft.SharePoint.Utilities.SimpleDate評估SimpleDate 。
iAdvance
Type: System.Int32要使用的回曆行事曆日期的前進距離值。
傳回值
Type: System.Boolean
true如果日期受支援。否則, false。