RuntimeReflectionExtensions.GetMethodInfo(Delegate) Méthode
Définition
Obtient un objet qui représente la méthode représentée par le délégué spécifié.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
Paramètres
- del
- Delegate
Délégué à examiner.The delegate to examine.
Retours
Objet qui représente la méthode.An object that represents the method.
Exceptions
del
a la valeur null
.del
is null
.
L’appelant n’a pas accès à la méthode représentée par le délégué (par exemple, si la méthode est privée).The caller does not have access to the method represented by the delegate (for example, if the method is private).