クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
以前のバージョン
.NET Framework SDK 2.0
System.Reflection
MethodInfo クラス

  低帯域幅での表示をオンにする
このページは次のバージョンについて記述しています。
Microsoft Visual Studio 2005/.NET Framework 2.0

その他のバージョンについては、以下の情報を参照してください。
.NET Framework クラス ライブラリ
MethodInfo クラス

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

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

Visual Basic (宣言)
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
Public MustInherit Class MethodInfo
    Inherits MethodBase
    Implements _MethodInfo
Visual Basic (使用法)
Dim instance As MethodInfo
C#
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
public abstract class MethodInfo : MethodBase, _MethodInfo
C++
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::None)] 
public ref class MethodInfo abstract : public MethodBase, _MethodInfo
J#
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
public abstract class MethodInfo extends MethodBase implements _MethodInfo
JScript
SerializableAttribute 
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.None) 
public abstract class MethodInfo extends MethodBase implements _MethodInfo

MethodInfo のインスタンスは、Type オブジェクトまたは Type から派生したオブジェクトの GetMethods メソッドまたは GetMethod メソッドを呼び出すことによって、またはジェネリック メソッド定義を表す MethodInfoMakeGenericMethod メソッドを呼び出すことによって取得します。

ジェネリック メソッドに固有の用語に関する一定の条件の一覧については、IsGenericMethod プロパティのトピックを参照してください。ジェネリック リフレクションで使用されるその他の用語に関する一定の条件の一覧については、IsGenericType のプロパティのトピックを参照してください。

継承時の注意 MethodInfo から継承する場合は、MethodInfo.GetBaseDefinitionMethodInfo.ReturnTypeMethodInfo.ReturnTypeCustomAttributesMethodBase.GetParametersMethodBase.GetMethodImplementationFlagsMethodBase.MethodHandleMethodBase.AttributesMethodBase.InvokeMemberInfo.NameMemberInfo.MemberTypeMemberInfo.DeclaringTypeMemberInfo.ReflectedTypeMemberInfo.GetCustomAttributesMemberInfo.GetCustomAttributes、および MemberInfo.IsDefined をオーバーライドする必要があります。

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

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

.NET Framework

サポート対象 : 2.0、1.1、1.0

.NET Compact Framework

サポート対象 : 2.0、1.0
コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2009 Microsoft Corporation. All rights reserved. 使用条件  |  商標  |  プライバシー
Page view tracker