GacMembershipCondition.GetHashCode メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > GacMembershipCondition.GetHashCode メソッドの意味・解説 

GacMembershipCondition.GetHashCode メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

現在のメンバシップ条件ハッシュ コード取得します

名前空間: System.Security.Policy
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Overrides Function
 GetHashCode As Integer
Dim instance As GacMembershipCondition
Dim returnValue As Integer

returnValue = instance.GetHashCode
public override int GetHashCode ()
public int GetHashCode ()

戻り値
0 (ゼロ)。

解説解説

GacMembershipCondition オブジェクトには各オブジェクト区別するプロパティがないため、GetHashCode メソッドは 0 (ゼロ) を返します

使用例使用例

GetHashCode メソッド使用するコード例次に示します。このコード例は、GacMembershipCondition クラストピック取り上げているコード例一部分です。

Dim Gac1 As New GacMembershipCondition
Try
    Console.WriteLine( _
        ("Result of GetHashCode for a GacMembershipCondition =
 " _
        & Gac1.GetHashCode().ToString() & ControlChars.Lf))
Catch e As Exception
    Console.WriteLine(("GetHashCode failed : " &
 _
        Gac1.ToString() & e.ToString()))
    Return False
End Try

GacMembershipCondition Gac1 = new GacMembershipCondition();
try
{
    Console.WriteLine(
        "Result of GetHashCode for a GacMembershipCondition
 = " + 
        Gac1.GetHashCode().ToString() + "\n");
}
catch (Exception e)
{
    Console.WriteLine("GetHashCode failed : " + Gac1.ToString() + e);
    return false;
}
GacMembershipCondition ^ Gac1 = gcnew GacMembershipCondition;
try
{
    Console::WriteLine(
        "Result of GetHashCode for a GacMembershipCondition
 = {0}\n",
        Gac1->GetHashCode());
}
catch (Exception^ e) 
{
     Console::WriteLine("GetHashCode failed : {0}{1}", Gac1, e);
     return false;
}
GacMembershipCondition gac1 = new GacMembershipCondition();

try {
    Console.WriteLine(
        ("Result of GetHashCode for a GacMembershipCondition
 = " 
        + gac1.GetHashCode() + "\n"));
}
catch (System.Exception e) {
    Console.WriteLine(("GetHashCode failed : " + gac1.ToString() + e));
    return false;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GacMembershipCondition クラス
GacMembershipCondition メンバ
System.Security.Policy 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

GacMembershipCondition.GetHashCode メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



GacMembershipCondition.GetHashCode メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS