Rule.CompareTo Method

Definition

Overloads

CompareTo(Rule)

Query whether this rule is less, greater, or equal to another rule instance.

CompareTo(Object)

Compare this rule object with another object

CompareTo(Rule)

Query whether this rule is less, greater, or equal to another rule instance.

C++
public:
 virtual int CompareTo(Microsoft::VisualStudio::Modeling::Rule ^ other);

Parameters

other
Rule

Rule to compare

Returns

-1, 0, 1

Implements

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

CompareTo(Object)

Compare this rule object with another object

C++
public:
 virtual int CompareTo(System::Object ^ obj);

Parameters

obj
Object

the object to compare it with

Returns

int

Implements

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022