Bridge

DateTime..::..CompareTo Method (Object)

Compares the value of this instance to a specified object that contains a specified DateTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified DateTime value.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public int CompareTo(
	Object other
)
<TemplateAttribute> _
Public Function CompareTo ( _
	other As Object _
) As Integer
[TemplateAttribute]
public:
int^ CompareTo(
	Object^ other
)

Parameters

other
Type: System..::..Object

Return Value

A signed number indicating the relative values of this instance and value.Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value, or value is null.

Exceptions


ExceptionCondition
System..::..ArgumentExceptionvalue is not a DateTime.