VirtualTypeImplementor.InvokeMethod(MethodInfo, Object, Object[]) Méthode

Définition

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

Object

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.

S’applique à