RuntimeReflectionExtensions.GetMethodInfo(Delegate) Methode
Definition
Ruft ein Objekt ab, das die Methode darstellt, die vom angegebenen Delegaten dargestellt wird.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);
static member GetMethodInfo : Delegate -> System.Reflection.MethodInfo
<Extension()>
Public Function GetMethodInfo (del As Delegate) As MethodInfo
Parameter
- del
- Delegate
Der zu überprüfende Delegat.The delegate to examine.
Gibt zurück
Ein Objekt, das die Methode darstellt.An object that represents the method.
Ausnahmen
del
ist null
.del
is null
.
Der Aufrufer verfügt nicht über Zugriff auf die Methode, die durch den Delegaten dargestellt wird (wenn die Methode z.B. privat ist).The caller does not have access to the method represented by the delegate (for example, if the method is private).