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

Delegado al método .

Devoluciones

Objeto MethodInfo que representa el método agregado.

Excepciones

El IExpando objeto no admite este método.

Se aplica a