共用方式為


ISPCalendar.MonthsInYear method

傳回在指定日期的年份中的月數。

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

Syntax

'宣告
Function MonthsInYear ( _
    ByRef di As SimpleDate _
) As Integer
'用途
Dim instance As ISPCalendar
Dim di As SimpleDate
Dim returnValue As Integer

returnValue = instance.MonthsInYear(di)
int MonthsInYear(
    ref SimpleDate di
)

參數

傳回值

Type: System.Int32
整數,表示指定日期的年份中的月數。

請參閱

參照

ISPCalendar interface

ISPCalendar members

Microsoft.SharePoint.Utilities namespace