RuntimeReflectionExtensions.GetMethodInfo(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

要檢查的委派。

傳回

MethodInfo

表示方法的物件。

例外狀況

delnull

呼叫端無權存取由委派所表示的方法 (例如,如果方法是私用的)。

適用於

另請參閱