RuntimeReflectionExtensions.GetMethodInfo(Delegate) メソッド
定義
指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。Gets an object that represents the method represented by the specified delegate.
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::MethodInfo ^ GetMethodInfo(Delegate ^ del);
public static System.Reflection.MethodInfo GetMethodInfo (this Delegate del);
public static System.Reflection.MethodInfo? GetMethodInfo (this Delegate del);
static member GetMethodInfo : Delegate -> System.Reflection.MethodInfo
<Extension()>
Public Function GetMethodInfo (del As Delegate) As MethodInfo
パラメーター
- del
- Delegate
検査するデリゲート。The delegate to examine.
戻り値
メソッドを表すオブジェクト。An object that represents the method.
例外
del
が null
です。del
is null
.
呼び出し元には、デリゲートによって表されるメソッドへのアクセスはありません (たとえば、メソッドがプライベートである)。The caller does not have access to the method represented by the delegate (for example, if the method is private).