Rule.CompareTo Method
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.
CompareTo(Rule) |
Query whether this rule is less, greater, or equal to another rule instance. |
CompareTo(Object) |
Compare this rule object with another object |
Query whether this rule is less, greater, or equal to another rule instance.
C++
public:
virtual int CompareTo(Microsoft::VisualStudio::Modeling::Rule ^ other);
public int CompareTo(Microsoft.VisualStudio.Modeling.Rule other);
abstract member CompareTo : Microsoft.VisualStudio.Modeling.Rule -> int
override this.CompareTo : Microsoft.VisualStudio.Modeling.Rule -> int
Public Function CompareTo (other As Rule) As Integer
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 |
Compare this rule object with another object
C++
public:
virtual int CompareTo(System::Object ^ obj);
public int CompareTo(object obj);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (obj As Object) As Integer
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 |