GetHashCode Method
Collapse the table of content
Expand the table of content

UriBuilder.GetHashCode Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the hash code for the URI.

Namespace:  System
Assembly:  System (in System.dll)

'Declaration
Public Overrides Function GetHashCode As Integer

Return Value

Type: System.Int32
The hash code generated for the URI.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft