OrdinalEvent.Compare(OrdinalEvent, OrdinalEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The first instance to compare.
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.