RuntimeReflectionExtensions.GetMethodInfo(Delegate) Method

Definition

Obtém um objeto que representa o método representado pelo delegado especificado.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

Parameters

del
Delegate

O delegado a examinar.The delegate to examine.

Returns

MethodInfo

Um objeto que representa o método.An object that represents the method.

Exceptions

del é null.del is null.

O chamador não tem acesso ao método representado pelo representante (por exemplo, caso o método seja privado).The caller does not have access to the method represented by the delegate (for example, if the method is private).

Applies to

See also