This documentation is archived and is not being maintained.

Uri.Equals Method

Compares two Uri instances for equality.

[Visual Basic]
Overrides Public Function Equals( _
   ByVal comparand As Object _
) As Boolean
public override bool Equals(
 object comparand
public: bool Equals(
 Object* comparand
public override function Equals(
   comparand : Object
) : Boolean;


The Uri or a URI identifier to compare with the current instance.

Return Value

true if the two instances represent the same URI; otherwise, false.


The Equals method compares the two instances without regard to any fragments that they might contain. For instance, given the URIs and the Equals method would return true.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace