GlobalPositioningSystemDateCompareTo Method (Object) |
Compares this instance with another instance of the same type.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public int CompareTo(
Object obj
)
Public Function CompareTo (
obj As Object
) As Integer
public:
virtual int CompareTo(
Object^ obj
) sealed
abstract CompareTo :
obj : Object -> int
override CompareTo :
obj : Object -> int
Parameters
- obj
- Type: SystemObject
An object to compare with this instance.
Return Value
Type:
Int32
A value indicating 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 |
---|
ArgumentTypeInvalidException |
Thrown when the parameter obj is not of the same type as the object on which
this method is called.
|
See Also