SPCalendarItem.CompareTo Method
Compares this instance to a specified object and returns an indication of their relative values.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function CompareTo ( _
obj As Object _
) As Integer
'Usage
Dim instance As SPCalendarItem
Dim obj As Object
Dim returnValue As Integer
returnValue = instance.CompareTo(obj)
public int CompareTo(
Object obj
)
Parameters
obj
Type: System.ObjectObject
Return Value
Type: System.Int32
A signed number indicating the relative values of this instance and value.
Parameter |
Description |
---|---|
Less than zero |
This instance is less than value. |
Zero |
This instance is equal to value. |
Greater than zero |
This instance is greater than value, or value is a null reference (Nothing in Visual Basic). |