Share via


Inequality Operator

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

Indicates whether two TimeSpan instances are not equal.

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

Syntax

'Declaration
Public Shared Operator <> ( _
    t1 As TimeSpan, _
    t2 As TimeSpan _
) As Boolean
public static bool operator !=(
    TimeSpan t1,
    TimeSpan t2
)
public:
static bool operator !=(
    TimeSpan t1, 
    TimeSpan t2
)
static let inline (<>)
        t1:TimeSpan * 
        t2:TimeSpan  : bool
JScript does not support overloaded operators.

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

TimeSpan Structure

System Namespace