This documentation is archived and is not being maintained.

Uri.GetHashCode Method

Returns the hash code for the specified URI.

[Visual Basic]
Overrides Public Function GetHashCode() As Integer
public override int GetHashCode();
public: int GetHashCode();
public override function GetHashCode() : int;

Return Value

The hash value generated for the URI.


The GetHashCode method generates the URI's hash value without including any fragment identifiers. For example, the URIs and yield the same hash code.


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