Share via


ISPCalendar.MonthsInYear Method

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

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

Syntax

'Declaration
Function MonthsInYear ( _
    ByRef di As SimpleDate _
) As Integer
'Usage
Dim instance As ISPCalendar
Dim di As SimpleDate
Dim returnValue As Integer

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

Parameters

Return Value

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

See Also

Reference

ISPCalendar Interface

ISPCalendar Members

Microsoft.SharePoint.Utilities Namespace