MethodInfo クラス
アセンブリ: mscorlib (mscorlib.dll 内)
構文
<SerializableAttribute> _ <ComVisibleAttribute(True)> _ <ClassInterfaceAttribute(ClassInterfaceType.None)> _ Public MustInherit Class MethodInfo Inherits MethodBase Implements _MethodInfo
[SerializableAttribute] [ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType.None)] public abstract class MethodInfo : MethodBase, _MethodInfo
[SerializableAttribute] [ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType::None)] public ref class MethodInfo abstract : public MethodBase, _MethodInfo
MethodInfo のインスタンスは、Type オブジェクトまたは Type から派生したオブジェクトの GetMethods メソッドまたは GetMethod メソッドを呼び出すことによって、またはジェネリック メソッド定義を表す MethodInfo の MakeGenericMethod メソッドを呼び出すことによって取得します。
ジェネリック メソッドに固有の用語に関する一定の条件の一覧については、IsGenericMethod プロパティのトピックを参照してください。ジェネリック リフレクションで使用されるその他の用語に関する一定の条件の一覧については、IsGenericType のプロパティのトピックを参照してください。
継承時の注意 MethodInfo から継承する場合は、MethodInfo.GetBaseDefinition、MethodInfo.ReturnType、MethodInfo.ReturnTypeCustomAttributes、MethodBase.GetParameters、MethodBase.GetMethodImplementationFlags、MethodBase.MethodHandle、MethodBase.Attributes、MethodBase.Invoke、MemberInfo.Name、MemberInfo.MemberType、MemberInfo.DeclaringType、MemberInfo.ReflectedType、MemberInfo.GetCustomAttributes、MemberInfo.GetCustomAttributes、および MemberInfo.IsDefined をオーバーライドする必要があります。System.Reflection.MemberInfo
System.Reflection.MethodBase
System.Reflection.MethodInfo
Microsoft.JScript.JSMethod
Microsoft.JScript.JSMethodInfo
System.Reflection.Emit.DynamicMethod
System.Reflection.Emit.MethodBuilder
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- MethodInfo クラスのページへのリンク