OrdinalEvent.CompareTo Method (Object)
Compares the current instance with another instance and returns an integer that indicates whether the current instance comes before, follows, or occurs in the same position in the sort order as the other instance.
Namespace: Microsoft.VisualStudio.IntelliTrace
Assembly: Microsoft.VisualStudio.IntelliTrace (in Microsoft.VisualStudio.IntelliTrace.dll)
Syntax
'Declaration
Public Function CompareTo ( _
obj As Object _
) As Integer
public int CompareTo(
Object obj
)
public:
virtual int CompareTo(
Object^ obj
) sealed
abstract CompareTo :
obj:Object -> int
override CompareTo :
obj:Object -> int
public final function CompareTo(
obj : Object
) : int
Parameters
- obj
Type: System.Object
An object to compare with this instance.
Return Value
Type: System.Int32
A value that indicates the relative order of the objects that are being compared.
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.