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)

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

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

IComparable.CompareTo(Object)

Remarks

This member is an explicit interface member implementation. It can be used only when the SPRecycleBinItem instance is cast to an IComparable interface.

See also

Reference

SPRecycleBinItem class

SPRecycleBinItem members

Microsoft.SharePoint namespace