 | DurationCompare Method |
Compares two
Duration objects and returns an indication of their relative values.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static int Compare(
Duration d1,
Duration d2
)
Public Shared Function Compare (
d1 As Duration,
d2 As Duration
) As Integer
Parameters
- d1
- Type: RanorexDuration
The first duration. - d2
- Type: RanorexDuration
The second duration.
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 | d1 is less than d2. |
| Zero | d1 is equal to d2. |
| Greater than zero | d1 is greater than d2. |
See Also