Compares two Uri instances for equality.
[Visual Basic]
Overrides Public Function Equals( _
ByVal comparand As Object _
) As Boolean
[C#]
public override bool Equals(
object comparand
);
[C++]
public: bool Equals(
Object* comparand
);
[JScript]
public override function Equals(
comparand : Object
) : Boolean;
Parameters
- comparand
- 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.
Remarks
The Equals method compares the two instances without regard to any fragments that they might contain. For instance, given the URIs http://www.contoso.com/index.htm#search and http://www.contoso.com/index.htm the Equals method would return true.
Requirements
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