共用方式為


SPIntlCal.MonthsInLocalYear method

傳回指定的行事曆型別中指定的日期的年份中的月數。

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

Syntax

'宣告
Public Shared Function MonthsInLocalYear ( _
    calType As SPCalendarType, _
    ByRef di As SimpleDate _
) As Integer
'用途
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
)

參數

傳回值

Type: System.Int32
整數值,表示的年份中的月數。

請參閱

參照

SPIntlCal class

SPIntlCal members

Microsoft.SharePoint.Utilities namespace