NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeSpan.Compare

Compares two TimeSpan values and returns an integer that indicates their relationship.

[Visual Basic]
Public Shared Function Compare( _
   ByVal t1 As TimeSpan, _
   ByVal t2 As TimeSpan _
) As Integer
[C#]
public static int Compare(
   TimeSpan t1,
   TimeSpan t2
);
[C++]
public: static int Compare(
   TimeSpan t1,
   TimeSpan t2
);
[JScript]
public static function Compare(
   t1 : TimeSpan,
   t2 : TimeSpan
) : int;

Parameters

t1
The left operand.
t2
The right operand.

Return Value

Value Condition
-1 If the first TimeSpan is less than the second TimeSpan.
0 If the first TimeSpan is equal to the second TimeSpan.
1 If the first TimeSpan is greater than the second TimeSpan.

Remarks

The return value is an integer of the relationship of the parameters based upon the evaluation of the following:

See Also

TimeSpan Structure | TimeSpan Members | System Namespace | Int64