SPRecycleBinItem.IComparable.CompareTo Method
Compares the current Recycle Bin item with another Recycle Bin item.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Private Function CompareTo ( _
o As Object _
) As Integer Implements IComparable.CompareTo
'Usage
Dim instance As SPRecycleBinItem
Dim o As Object
Dim returnValue As Integer
returnValue = CType(instance, IComparable).CompareTo(o)
intIComparable.CompareTo(
Object o
)
Parameters
o
Type: System.ObjectThe object to compare with this item.
Return Value
Type: System.Int32
The relative order of the objects being compared. The return value has the following meanings:
Value |
Meaning |
Less than zero |
The Recycle Bin item is a list item, but the object with which it is being compared is not a list item. Otherwise, if both objects are list items, the Recycle Bin item alphabetically or numerically precedes the specified object according to directory, or title, if the items are located in the same directory, or item ID, if their titles are identical. |
Zero |
The Recycle Bin item is equal to the specified object. |
Greater than zero |
The Recycle Bin item is not a list item, but the object with which it is being compared is a list item. Otherwise, if both objects are list items, the Recycle Bin item alphabetically or numerically follows the specified object according to directory, or title, if the items are located in the same directory, or item ID, if their titles are identical. |
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the SPRecycleBinItem instance is cast to an IComparable interface.