다음을 통해 공유


SPIntlCal.MonthsInLocalYear Method

Returns the number of months in the year of the specified date in the specified calendar type.

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

Syntax

'Declaration
Public Shared Function MonthsInLocalYear ( _
    calType As SPCalendarType, _
    ByRef di As SimpleDate _
) As Integer
'Usage
Dim calType As SPCalendarType
Dim di As SimpleDate
Dim returnValue As Integer

returnValue = SPIntlCal.MonthsInLocalYear(calType, _
    di)
public static int MonthsInLocalYear(
    SPCalendarType calType,
    ref SimpleDate di
)

Parameters

Return Value

Type: System.Int32
An integer value that represents the number of months in the year.

See Also

Reference

SPIntlCal Class

SPIntlCal Members

Microsoft.SharePoint.Utilities Namespace