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

Dim handle As RuntimeTypeHandle Dim returnValue As Type returnValue = Type.GetTypeFromHandle(handle)
戻り値
指定した RuntimeTypeHandle によって参照される型。


ハンドルは取得されたアプリケーション ドメインでだけ有効です。
要求された型がパブリックではなく、呼び出し元に現在のアセンブリ外の非パブリック オブジェクトをリフレクションするための ReflectionPermission がない場合、このメソッドは null 参照 (Visual Basic では Nothing) を返します。

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 );


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に収録されているすべての辞書からType.GetTypeFromHandle メソッドを検索する場合は、下記のリンクをクリックしてください。

- Type.GetTypeFromHandle メソッドのページへのリンク