SPUtility.GetCalendarYearMax Method
Returns the maximum year that can be represented in calendars.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function GetCalendarYearMax ( _
iCalType As Integer _
) As Integer
'Usage
Dim iCalType As Integer
Dim returnValue As Integer
returnValue = SPUtility.GetCalendarYearMax(iCalType)
public static int GetCalendarYearMax(
int iCalType
)
Parameters
iCalType
Type: System.Int32A 32-bit integer that represents a Microsoft.SharePoint.SPCalendarType value.
Return Value
Type: System.Int32
A 32-bit integer that represents the year.