SPCalendarViewStyle.CompareTo Method
Compares the current calendar view style with another calendar view style.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function CompareTo ( _
otherViewStyle As SPCalendarViewStyle _
) As Integer
'Usage
Dim instance As SPCalendarViewStyle
Dim otherViewStyle As SPCalendarViewStyle
Dim returnValue As Integer
returnValue = instance.CompareTo(otherViewStyle)
public int CompareTo(
SPCalendarViewStyle otherViewStyle
)
Parameters
otherViewStyle
Type: Microsoft.SharePoint.SPCalendarViewStyleThe other calendar view style with which to compare this calendar view style.
Return Value
Type: System.Int32
Value |
Condition |
---|---|
Less than zero |
The current calendar view style precedes the otherViewStyle in the sort order. |
Zero |
This instance has the same position in the sort order as otherViewStyle. |
Greater than zero |
The current calendar view style follows the otherViewStyle in the sort order. |
Implements
Remarks
This method returns the comparison result based on the comparison result of the Sequence property.