Compares this object to o.
Namespace: Endeca.NavigationAssembly: Endeca.Navigation (in Endeca.Navigation.dll) Version: 6.3.0.0 (6.3.0.853)
Syntax
C# |
---|
public virtual int CompareTo( Object o ) |
Visual Basic |
---|
Public Overridable Function CompareTo ( _ o As Object _ ) As Integer |
Visual C++ |
---|
public: virtual int CompareTo( Object^ o ) |
Parameters
- o
- Type: System..::..Object
An object for comparison.
Return Value
Negative int if this is less than o, 0 if they are equal, and a positive int if this is greater than o.Implements
IComparable..::..CompareTo(Object)Remarks
Casts o as Property and returns
a negative int if this is less than o, zero
if they are the same, and a positive int if this is greater
than o.
Exceptions
Exception | Condition |
---|---|
System..::..InvalidCastException | o can't be cast as a Property. |