Share via


OrdinalEvent.CompareTo Method (OrdinalEvent)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Compares the order of an event to the current instance.

Namespace:  Microsoft.VisualStudio.TraceLog
Assembly:  Microsoft.VisualStudio.TraceLog (in Microsoft.VisualStudio.TraceLog.dll)

Syntax

'Declaration
Public Function CompareTo ( _
    other As OrdinalEvent _
) As Integer
'Usage
Dim instance As OrdinalEvent
Dim other As OrdinalEvent
Dim returnValue As Integer

returnValue = instance.CompareTo(other)
public int CompareTo(
    OrdinalEvent other
)
public:
virtual int CompareTo(
    OrdinalEvent^ other
) sealed
abstract CompareTo : 
        other:OrdinalEvent -> int 
override CompareTo : 
        other:OrdinalEvent -> int 
public final function CompareTo(
    other : OrdinalEvent
) : int

Parameters

Return Value

Type: System.Int32
A value that indicates the relative order of the objects being compared. If this instance is less than other, then a value less than zero is returned. If this instance is equal to other, then a value of zero is returned. If this instance is greater than other, then a value greater than zero is returned

Implements

IComparable<T>.CompareTo(T)

.NET Framework Security

See Also

Reference

OrdinalEvent Class

OrdinalEvent Members

CompareTo Overload

Microsoft.VisualStudio.TraceLog Namespace