OrdinalEvent.Compare Method
Compares one instance with another instance and returns an integer that indicates whether the current instance comes before, follows, or occurs in the same sort position order as the other instance.
Namespace: Microsoft.VisualStudio.IntelliTrace
Assembly: Microsoft.VisualStudio.IntelliTrace (in Microsoft.VisualStudio.IntelliTrace.dll)
Syntax
'Declaration
Public Function Compare ( _
x As OrdinalEvent, _
y As OrdinalEvent _
) As Integer
public int Compare(
OrdinalEvent x,
OrdinalEvent y
)
public:
virtual int Compare(
OrdinalEvent^ x,
OrdinalEvent^ y
) sealed
abstract Compare :
x:OrdinalEvent *
y:OrdinalEvent -> int
override Compare :
x:OrdinalEvent *
y:OrdinalEvent -> int
public final function Compare(
x : OrdinalEvent,
y : OrdinalEvent
) : int
Parameters
- x
Type: Microsoft.VisualStudio.IntelliTrace.OrdinalEvent
The first instance to compare.
- y
Type: Microsoft.VisualStudio.IntelliTrace.OrdinalEvent
The second instance to compare.
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.