Click or drag to resize

MvDateTimeCompareTo Method (Object)

Compares the current instance to another object.

Namespace:  RW.Server.Component
Assembly:  RW.Server.Component (in RW.Server.Component.dll) Version: 6.5.0.0 (6.5.0.0)
Syntax
public virtual int CompareTo(
	Object obj
)

Parameters

obj
Type: SystemObject
The object to be compared.

Return Value

Type: Int32
0 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)
Exceptions
ExceptionCondition
InvalidCastExceptionIf the argument is not an MvDateTime.
InvalidOperationExceptionIf the current instance is invalid or the argument is null.
Remarks

If the object is an instance of MvDateTime, this function behaves like CompareTo(MvDateTime).

Otherwise, it throws a CastClassException.

See Also