Compares the rule to another rule.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Function CompareTo ( _
other As Rule _
) As Integer
'使用
Dim instance As Rule
Dim other As Rule
Dim returnValue As Integer
returnValue = instance.CompareTo(other)
public int CompareTo(
Rule other
)
public:
virtual int CompareTo(
Rule^ other
) sealed
public final function CompareTo(
other : Rule
) : int
Parameters
other
Type: Microsoft.VisualStudio.Modeling.RuleThe other rule.
Return Value
Type: System.Int32
1 if the other rule is greater than the specified rule, 0 if the other rule equals the specified rule, -1 if the other rule is less than the specified rule.
Implements
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.