MethodInfo クラスとは? わかりやすく解説

MethodInfo クラス

メソッド属性取得しメソッドメタデータアクセスできるようにします。

名前空間: System.Reflection
アセンブリ: 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
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
public abstract class MethodInfo extends MethodBase
 implements _MethodInfo
SerializableAttribute 
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.None) 
public abstract class MethodInfo extends
 MethodBase implements _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.Object
   System.Reflection.MemberInfo
     System.Reflection.MethodBase
      System.Reflection.MethodInfo
         Microsoft.JScript.JSMethod
         Microsoft.JScript.JSMethodInfo
         System.Reflection.Emit.DynamicMethod
         System.Reflection.Emit.MethodBuilder
スレッド セーフスレッド セーフ

この型は、マルチスレッド操作に対して安全です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MethodInfo メンバ
System.Reflection 名前空間
System.Type.GetMethods
System.Type.GetMethod
IsGenericMethod



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

辞書ショートカット

すべての辞書の索引

「MethodInfo クラス」の関連用語

MethodInfo クラスのお隣キーワード
検索ランキング

   

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



MethodInfo クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS