RuntimeReflectionExtensions.GetMethodInfo(Delegate) Metodo
Definizione
Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.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
Parametri
- del
- Delegate
Delegato da esaminare.The delegate to examine.
Restituisce
Oggetto che rappresenta il metodo.An object that represents the method.
Eccezioni
del
è null
.del
is null
.
Il chiamante non ha accesso al metodo rappresentato dal delegato, ad esempio se il metodo è privato.The caller does not have access to the method represented by the delegate (for example, if the method is private).