System.UriBuilder.GetHashCode Method

Returns the hash code for the URI.

Syntax

public override int GetHashCode ()

Returns

The hash code generated for the URI.

Remarks

The hash code is generated without including any fragment. The URIs http://www.contoso.com/index.htm#search and http://www.contoso.com/index.htm generate the same hash code.

The hash codes for Uri A and B are guaranteed to be the same when A.Equals(B) is true.

This method implements object.GetHashCode.

Requirements

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