System.Uri.GetHashCode Method

Gets the hash code for the URI.

Syntax

public override int GetHashCode ()

Returns

An int containing the hash value generated for this URI.

Remarks

The hash code is generated without the fragment component. For example, the URIs "http://www.contoso.com/index.htm#search" and "http://www.contoso.com/index.htm" produce the same hash code.

The algorithm used to generate the hash code is unspecified.

Note: This method overrides object.GetHashCode.

Requirements

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