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
- lhs
Type: System. . :: . .Uri
A Uri instance to compare with uri2.
- rhs
Type: System. . :: . .Uri
A Uri instance to compare with uri1.
Return Value
Type: System. . :: . .Boolean
A Boolean value that is true if the Uri instances are equivalent; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.