Rogue Wave Server Component library for .NET Reference Guide
|
|
MvDateTimeCompareTo Method (Object) |
Compares the current instance to another object.
Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 7.0.0.0 (7.0.0.0)
Parameters
- obj
- Type: SystemObject
The object to be compared.
Return Value
Type: Int320 if the two dates are equal, less than 0 if the argument is later than this date, and a value greater than 0 otherwise.
Implements
IComparableCompareTo(Object)| Exception | Condition |
|---|---|
| InvalidCastException | If the argument is not an MvDateTime. |
| InvalidOperationException | If the current instance is invalid or the argument is null. |
If the object is an instance of MvDateTime, this function behaves like CompareTo(MvDateTime).
Otherwise, it throws a CastClassException.