 | DurationCompareTo Method (Object) |
Compares the current duration with another object of the same type.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic int CompareTo(
Object obj
)
Public Function CompareTo (
obj As Object
) As Integer
Parameters
- obj
- Type: SystemObject
An object to compare with this instance.
Return Value
Type:
Int32A 32-bit signed integer that indicates the relative order of the objects being compared.
The return value has these meanings:
| Value | Meaning |
|---|
| Less than zero | This instance is less than obj. |
| Zero | This instance is equal to obj. |
| Greater than zero | This instance is greater than obj. |
Implements
IComparableCompareTo(Object)
Exceptions| Exception | Condition |
|---|
| ArgumentException | obj is not of type Duration. |
See Also