共用方式為


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

'宣告
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

Return Value

Type: System.Int32
A value that indicates the relative order of the objects that are being compared.

Implements

IComparer<T>.Compare(T, T)

.NET Framework Security

See Also

Reference

OrdinalEvent Class

Microsoft.VisualStudio.IntelliTrace Namespace