다음을 통해 공유


SPIntlCal.IsLocalDateValid Method (SPCalendarType, SimpleDate, Int32, Int32)

Returns a Boolean value that indicates whether the specified calendar type supports the specified date.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function IsLocalDateValid ( _
    calType As SPCalendarType, _
    ByRef di As SimpleDate, _
    iAdvance As Integer, _
    jDayCurrent As Integer _
) As Boolean
'Usage
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
)

Parameters

  • iAdvance
    Type: System.Int32

    A 32-bit integer that represents the advance value to use for a Hijri calendar date.

  • jDayCurrent
    Type: System.Int32

    A 32-bit integer that represents the current Julian day.

Return Value

Type: System.Boolean
true if the date is supported; otherwise, false.

See Also

Reference

SPIntlCal Class

SPIntlCal Members

IsLocalDateValid Overload

Microsoft.SharePoint.Utilities Namespace