共用方式為


SPIntlCal.IsLocalDateValid method (SPCalendarType, SimpleDate, Int32, 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, _
    jDayCurrent As Integer _
) As Boolean
'用途
Dim calType As SPCalendarType
Dim di As SimpleDate
Dim iAdvance As Integer
Dim jDayCurrent As Integer
Dim returnValue As Boolean

returnValue = SPIntlCal.IsLocalDateValid(calType, _
    di, iAdvance, jDayCurrent)
public static bool IsLocalDateValid(
    SPCalendarType calType,
    ref SimpleDate di,
    int iAdvance,
    int jDayCurrent
)

參數

  • iAdvance
    Type: System.Int32

    32 位元整數,表示要使用的回曆行事曆日期的前進距離值。

  • jDayCurrent
    Type: System.Int32

    32 位元整數,表示目前的 Julian 日期。

傳回值

Type: System.Boolean
true如果日期受支援。否則, false。

請參閱

參照

SPIntlCal class

SPIntlCal members

IsLocalDateValid overload

Microsoft.SharePoint.Utilities namespace