IExpando.AddMethod(String, Delegate) Metodo

Definizione

Aggiunge il metodo denominato all'oggetto 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

Parametri

name
String

Nome del metodo.

method
Delegate

Delegato al metodo .

Valori restituiti

Oggetto MethodInfo che rappresenta il metodo aggiunto.

Eccezioni

L'oggetto IExpando non supporta questo metodo.

Si applica a