IExpando.AddMethod(String, Delegate) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute la méthode nommée à l'objet 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
Paramètres
- name
- String
Nom de la méthode.
- method
- Delegate
Délégué de la méthode.
Retours
Objet MethodInfo représentant la méthode ajoutée.
Exceptions
L'objet IExpando ne prend pas en charge cette méthode.