RuntimeReflectionExtensions.GetMethodInfo(Delegate) 方法

定義

取得一個代表指定代理所代表方法的物件。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::MethodInfo ^ GetMethodInfo(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

代表要檢查。

傳回

一個代表方法的物件。

例外狀況

delnull

呼叫者無法存取代理所代表的方法(例如,若該方法為私有)。

適用於

另請參閱