共用方式為


ISPCalendar.IsDateValid method

傳回布林值,指出指定的SimpleDate是否表示有效的日期值。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Function IsDateValid ( _
    ByRef di As SimpleDate, _
    iAdvance As Integer, _
    jDayCurrent As Integer _
) As Boolean
'用途
Dim instance As ISPCalendar
Dim di As SimpleDate
Dim iAdvance As Integer
Dim jDayCurrent As Integer
Dim returnValue As Boolean

returnValue = instance.IsDateValid(di, _
    iAdvance, jDayCurrent)
bool IsDateValid(
    ref SimpleDate di,
    int iAdvance,
    int jDayCurrent
)

參數

  • iAdvance
    Type: System.Int32

    要使用的回曆行事曆日期的前進距離值。

  • jDayCurrent
    Type: System.Int32

    整數值,表示目前 Julian 日期評估回曆行事曆日期時使用。

傳回值

Type: System.Boolean
true如果日期值無效。否則, false。

請參閱

參照

ISPCalendar interface

ISPCalendar members

Microsoft.SharePoint.Utilities namespace