Sdílet prostřednictvím


OrdinalEvent.Compare(OrdinalEvent, OrdinalEvent) Method

Definition

Compares one instance with another instance and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other instance.

public:
 virtual int Compare(Microsoft::VisualStudio::IntelliTrace::OrdinalEvent ^ x, Microsoft::VisualStudio::IntelliTrace::OrdinalEvent ^ y);
public int Compare (Microsoft.VisualStudio.IntelliTrace.OrdinalEvent x, Microsoft.VisualStudio.IntelliTrace.OrdinalEvent y);
abstract member Compare : Microsoft.VisualStudio.IntelliTrace.OrdinalEvent * Microsoft.VisualStudio.IntelliTrace.OrdinalEvent -> int
override this.Compare : Microsoft.VisualStudio.IntelliTrace.OrdinalEvent * Microsoft.VisualStudio.IntelliTrace.OrdinalEvent -> int
Public Function Compare (x As OrdinalEvent, y As OrdinalEvent) As Integer

Parameters

x
OrdinalEvent

The first instance to compare.

y
OrdinalEvent

The second instance to compare.

Returns

A value that indicates the relative order of the objects being compared. If x is less than y, then a value less than zero is returned. If x is equal to y, then a value of zero is returned. If x is greater than y, then a value greater than zero is returned.

Implements

Applies to