Uri.GetHashCode メソッド
アセンブリ: System (system.dll 内)

Dim instance As Uri Dim returnValue As Integer returnValue = instance.GetHashCode
この URI に対して作成されたハッシュ コードを格納している Int32。

Uri インスタンスを作成し、ハッシュ コードをコンソールに出力する例を次に示します。
' Create Uri Dim uriAddress As New Uri("http://www.contoso.com/index.htm#search") Console.WriteLine(uriAddress.Fragment) Console.WriteLine("Uri {0} the default port ", IIf(uriAddress.IsDefaultPort, "uses", "does not use")) 'TODO: For performance reasons this should be changed to nested IF statements Console.WriteLine("The path of this Uri is {0}", uriAddress.GetLeftPart(UriPartial.Path)) Console.WriteLine("Hash code {0}", uriAddress.GetHashCode())
// Create Uri Uri uriAddress = new Uri("http://www.contoso.com/index.htm#search"); Console.WriteLine(uriAddress.Fragment); Console.WriteLine("Uri {0} the default port ", uriAddress.IsDefaultPort ? "uses" : "does not use"); Console.WriteLine("The path of this Uri is {0}", uriAddress.GetLeftPart(UriPartial.Path)); Console.WriteLine("Hash code {0}", uriAddress.GetHashCode());

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からUri.GetHashCode メソッドを検索する場合は、下記のリンクをクリックしてください。

- Uri.GetHashCode メソッドのページへのリンク