IExpando.AddMethod(String, Delegate) Método

Definición

Agrega el método con nombre al objeto Reflection.

public:
 System::Reflection::MethodInfo ^ AddMethod(System::String ^ name, Delegate ^ method);
public System.Reflection.MethodInfo AddMethod (string name, Delegate method);
abstract member AddMethod : string * Delegate -> System.Reflection.MethodInfo
Public Function AddMethod (name As String, method As Delegate) As MethodInfo

Parámetros

name
String

Nombre del método.

method
Delegate

El delegado al método.

Devoluciones

MethodInfo

Objeto MethodInfo que representa el método agregado.

Excepciones

El objeto IExpando no admite este método.

Se aplica a