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

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

Type.GetTypeFromHandle メソッド

指定したハンドルによって参照される型を取得します

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

Public Shared Function GetTypeFromHandle
 ( _
    handle As RuntimeTypeHandle _
) As Type
Dim handle As RuntimeTypeHandle
Dim returnValue As Type

returnValue = Type.GetTypeFromHandle(handle)
public static Type GetTypeFromHandle (
    RuntimeTypeHandle handle
)
public:
static Type^ GetTypeFromHandle (
    RuntimeTypeHandle handle
)
public static Type GetTypeFromHandle (
    RuntimeTypeHandle handle
)
public static function GetTypeFromHandle
 (
    handle : RuntimeTypeHandle
) : Type

パラメータ

handle

型を参照する RuntimeTypeHandle オブジェクト

戻り値
指定した RuntimeTypeHandle によって参照される型。

例外例外
例外種類条件

ArgumentNullException

handlenull 参照 (Visual Basic では Nothing) です。

TargetInvocationException

クラス初期化子呼び出され例外スローしました

解説解説
使用例使用例
   Dim myClass1 As New MyClass1()
   ' Get the type referenced by the specified type handle.
   Dim myClass1Type As Type = Type.GetTypeFromHandle(Type.GetTypeHandle(MyClass1))
   Console.WriteLine(("The Names of the Attributes :"
 + myClass1Type.Attributes.ToString()))
End Sub 'Main 
MyClass1 myClass1 = new MyClass1();
 // Get the type referenced by the specified type handle.
Type myClass1Type = Type.GetTypeFromHandle(Type.GetTypeHandle(myClass1));
Console.WriteLine("The Names of the Attributes :"+myClass1Type.Attributes);
MyClass1^ myClass1 = gcnew MyClass1;
// Get the type referenced by the specified type handle.
Type^ myClass1Type = Type::GetTypeFromHandle( Type::GetTypeHandle( myClass1 ) );
Console::WriteLine( "The Names of the Attributes : {0}", myClass1Type->Attributes
 );
MyClass1 myClass1 =  new MyClass1();
// Get the type referenced by the specified type handle.
Type myClass1Type = Type.GetTypeFromHandle(Type.GetTypeHandle(myClass1));
Console.WriteLine("The Names of the Attributes :" + myClass1Type.
    get_Attributes());
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Type クラス
Type メンバ
System 名前空間
RuntimeTypeHandle 構造体
TypeHandle
GetTypeHandle
ReflectionPermission


このページでは「.NET Framework クラス ライブラリ リファレンス」からType.GetTypeFromHandle メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からType.GetTypeFromHandle メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からType.GetTypeFromHandle メソッド を検索

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

辞書ショートカット

すべての辞書の索引

「Type.GetTypeFromHandle メソッド」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS