Type.ReflectedTypeとは? わかりやすく解説

Type.ReflectedType プロパティ

このメンバを取得するために使用したクラス オブジェクトを取得します。

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

Public Overrides ReadOnly
 Property ReflectedType As Type
Dim instance As Type
Dim value As Type

value = instance.ReflectedType
public override Type ReflectedType { get; }
public:
virtual property Type^ ReflectedType {
    Type^ get () override;
}
/** @property */
public Type get_ReflectedType ()

プロパティ値
この MemberInfo オブジェクトを取得するために使用した Type オブジェクト。

解説解説
使用例使用例

派生クラスで、メソッドのリフレクションされた型を表示する例を次に示します。メソッド m は MyClassA で宣言されていますが、そのリフレクションされた型は MyClassB から取得されます。

Imports System
Imports System.Reflection

Public MustInherit Class
 rtype

    Public MustInherit Class
 MyClassA
        Public MustOverride Function
 m() As Integer
    End Class

    Public MustInherit Class
 MyClassB
        Inherits MyClassA
    End Class

    Public Shared Sub Main()
        Console.WriteLine("Reflected type of m is {0}",
 _
           GetType(MyClassB).GetMethod("m").ReflectedType)
    End Sub
End Class
using System;
using System.Reflection;
 
public abstract class rtype 
{
    public abstract class MyClassA 
    {
        public abstract int m(); 
    }

    public abstract class MyClassB : MyClassA
 
    {
    }

    public static void Main(string[]
 args) 
    { 
        Console.WriteLine("Reflected type of m is {0}",
            typeof(MyClassB).GetMethod("m").ReflectedType);
    }
}
using namespace System;
using namespace System::Reflection;

public ref class rtype abstract
{
public:
   ref class MyClassA abstract
   {
   public:
      virtual int m() = 0;
   };

   ref class MyClassB abstract: public MyClassA{};
};

int main()
{
   Console::WriteLine( "Reflected type of m is {0}", rtype::MyClassB::typeid->GetMethod(
 "m" )->ReflectedType );
}
import System.*;
import System.Reflection.*;

abstract public class Rtype
{
    abstract public class MyClassA
    {
        public abstract int M();
    } //MyClassA
      
    abstract public class MyClassB extends
 MyClassA
    {
    } //MyClassB

    public static void main(String[]
 args)
    {
        Console.WriteLine("Reflected type of M is {0}", 
            MyClassB.class.ToType().GetMethod("M").get_ReflectedType());
    } //main
} //Rtype
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

_Type.ReflectedType プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

COM オブジェクトに、Type.ReflectedType プロパティへのバージョンに依存しないアクセスが用意されています。

このプロパティは、CLS に準拠していません。  

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

Dim instance As _Type
Dim value As Type

value = instance.ReflectedType
Type ReflectedType { get; }
property Type^ ReflectedType {
    Type^ get ();
}
/** @property */
Type get_ReflectedType ()
function get ReflectedType () : Type

プロパティ値
この MemberInfo オブジェクトを取得するために使用した Type オブジェクト。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「Type.ReflectedType」の関連用語

Type.ReflectedTypeのお隣キーワード
検索ランキング

   

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



Type.ReflectedTypeのページの著作権

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

©2026 GRAS Group, Inc.RSS