VirtualTypeImplementor.InvokeMethod(MethodInfo, Object, Object[]) 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.
Appelle une méthode sur l'objet.
public:
virtual System::Object ^ InvokeMethod(System::Reflection::MethodInfo ^ method, System::Object ^ instance, cli::array <System::Object ^> ^ args);
public virtual object InvokeMethod (System.Reflection.MethodInfo method, object instance, object[] args);
abstract member InvokeMethod : System.Reflection.MethodInfo * obj * obj[] -> obj
override this.InvokeMethod : System.Reflection.MethodInfo * obj * obj[] -> obj
Public Overridable Function InvokeMethod (method As MethodInfo, instance As Object, args As Object()) As Object
Paramètres
- method
- MethodInfo
La méthode à appeler.
- instance
- Object
Instance sur laquelle appeler la méthode. Peut être null si la méthode est statique.
- args
- Object[]
Arguments de la méthode.
Retours
Objet qui représente une valeur de retour d'une méthode appelée.
Exceptions
Si la classe dérivée non abstraite n'a pas fourni d'implémentation en substituant cette méthode.