NamedPermissionSet.GetHashCode メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As NamedPermissionSet Dim returnValue As Integer returnValue = instance.GetHashCode
現在の NamedPermissionSet オブジェクトのハッシュ コード。

アクセス許可が同じ 2 つのインスタンスでもハッシュ コードが異なる場合があります。そのため、2 つの NamedPermissionSet オブジェクトを比較するときにハッシュ コードを使用することはできません。

GetHashCode メソッドを使用して、NamedPermissionSet のハッシュ コードを表示する方法を次のコード例に示します。このコード例は、NamedPermissionSet クラスのトピックで取り上げているコード例の一部分です。
' The hash code for two instances of the same permission might be different, hence a hash code should not be used to ' compare two named permission sets. TextBox1.AppendText("The hash code of the original permission set is " + namedPS2.GetHashCode().ToString()) TextBox1.AppendText("The hash code of the copy is " + namedPS4.GetHashCode().ToString())
// The hash code for two instances of the same permission might be different, hence a hash code should not be used to // compare two named permission sets. Console.WriteLine("The hash code of the original permission set is " + namedPS2.GetHashCode()); Console.WriteLine("The hash code of the copy is " + namedPS4.GetHashCode());
// The hash code for two instances of the same permission might be different, hence a hash code should not be used to // compare two named permission sets. Console::WriteLine( "The hash code of the original permission set is {0}", namedPS2->GetHashCode() ); Console::WriteLine( "The hash code of the copy is {0}", namedPS4->GetHashCode() );

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


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

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