DispatchProxy.Invoke(MethodInfo, 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.
Chaque fois qu’une méthode sur le type de proxy généré est appelée, cette méthode est appelée pour distribuer le contrôle.
protected:
abstract System::Object ^ Invoke(System::Reflection::MethodInfo ^ targetMethod, cli::array <System::Object ^> ^ args);
protected abstract object Invoke (System.Reflection.MethodInfo targetMethod, object[] args);
protected abstract object? Invoke (System.Reflection.MethodInfo? targetMethod, object?[]? args);
abstract member Invoke : System.Reflection.MethodInfo * obj[] -> obj
Protected MustOverride Function Invoke (targetMethod As MethodInfo, args As Object()) As Object
Paramètres
- targetMethod
- MethodInfo
Méthode que l’appelant a appelée.
- args
- Object[]
Arguments passés par l’appelant à la méthode.
Retours
Objet à retourner à l’appelant, ou null pour les méthodes void.