Bridge

TimeSpan..::..CompareTo Method (Object)

Compares this instance to a specified object and returns an integer that indicates whether this instance is shorter than, equal to, or longer than the specified object.

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

Syntax


public int CompareTo(
	Object value
)
Public Function CompareTo ( _
	value As Object _
) As Integer
public:
int^ CompareTo(
	Object^ value
)

Parameters

value
Type: System..::..Object
An object to compare, or null.

Return Value

One of the following values.Value Description -1 This instance is shorter than value. 0 This instance is equal to value. 1 This instance is longer than value.-or- value is null.

Exceptions


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