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
)
參數
calType
Type: Microsoft.SharePoint.SPCalendarTypeSPCalendarType物件,表示行事曆類型。
di
Type: Microsoft.SharePoint.Utilities.SimpleDateSimpleDate物件,表示包含年、 月和日的 date 值。
傳回值
Type: System.Int32
整數值,表示的年份中的月數。