Click or drag to resize
Ranorex

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
Syntax
public int CompareTo(
	Object obj
)

Parameters

obj
Type: SystemObject
An object to compare with this instance.

Return Value

Type: Int32
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
ValueMeaning
Less than zeroThis instance is less than obj.
ZeroThis instance is equal to obj.
Greater than zeroThis instance is greater than obj.

Implements

IComparableCompareTo(Object)
Exceptions
ExceptionCondition
ArgumentExceptionobj is not of type Duration.
See Also