Share via


Equals Method (TimeSpan, TimeSpan)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a value that indicates whether two specified instances of TimeSpan are equal.

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

Syntax

'Declaration
Public Shared Function Equals ( _
    t1 As TimeSpan, _
    t2 As TimeSpan _
) As Boolean
public static bool Equals(
    TimeSpan t1,
    TimeSpan t2
)
public:
static bool Equals(
    TimeSpan t1, 
    TimeSpan t2
)
static member Equals : 
        t1:TimeSpan * 
        t2:TimeSpan -> bool 
public static function Equals(
    t1 : TimeSpan, 
    t2 : TimeSpan
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
true if the values of t1 and t2 are equal; otherwise, false.

.NET Framework Security

See Also

Reference

TimeSpan Structure

Equals Overload

System Namespace