Share via


Equality Operator

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

Determines whether two Uri instances have the same value.

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

Syntax

'Declaration
Public Shared Operator = ( _
    lhs As Uri, _
    rhs As Uri _
) As Boolean
public static bool operator ==(
    Uri lhs,
    Uri rhs
)
public:
static bool operator ==(
    Uri^ lhs, 
    Uri^ rhs
)
static let inline (=)
        lhs:Uri * 
        rhs:Uri  : bool
JScript does not support overloaded operators.

Parameters

Return Value

Type: System. . :: . .Boolean
A Boolean value that is true if the Uri instances are equivalent; otherwise, false.

.NET Framework Security

See Also

Reference

Uri Class

System Namespace