UriBuilder.GetHashCode 方法

定義

傳回 URI 的雜湊碼。

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

傳回

Int32

為 URI 所產生的雜湊碼。

備註

雜湊程式碼會產生,而不包含任何片段。 URI http://www.contoso.com/index.htm#searchhttp://www.contoso.com/index.htm 產生相同的雜湊碼。

當 A.Equals (B) 為 true 時,A 和 B 的雜湊碼 Uri 保證相同。

這個方法會實作 Object.GetHashCode

適用於