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.Equals (TimeSpan, TimeSpan)

Determines whether two TimeSpan objects represent the same time.

[Visual Basic]
Overloads Public Shared Function Equals( _
   ByVal t1 As TimeSpan, _
   ByVal t2 As TimeSpan _
) As Boolean
[C#]
public static bool Equals(
   TimeSpan t1,
   TimeSpan t2
);
[C++]
public: static bool Equals(
   TimeSpan t1,
   TimeSpan t2
);
[JScript]
public static function Equals(
   t1 : TimeSpan,
   t2 : TimeSpan
) : Boolean;

Parameters

t1
A TimeSpan object.
t2
Another TimeSpan object.

Return Value

true if the two TimeSpan objects represent the same time; otherwise, false.

Remarks

The Equals method returns a true result when it compares the first TimeSpan object to another TimeSpan object (t1 = t2) and if they represent the same time. If they are unequal then it returns false.

See Also

TimeSpan Structure | TimeSpan Members | System Namespace | TimeSpan.Equals Overload List | Boolean