System.Uri.op_Equality Method

Determines whether two Uri instances have the same value.

Syntax

public static bool operator== (Uri uri1, Uri uri2)

Parameters

uri1
A Uri instance to compare with uri2.
uri2
A Uri instance to compare with uri1.

Returns

A bool value that is true if the Uri instances are equivalent; otherwise, false.

Remarks

This overload uses the Uri.Equals(object) method to determine whether the two Uri instances are equivalent. Uri.UserInfo and Uri.Fragment content is ignored when making this comparison.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0