DispatchProxy.Invoke(MethodInfo, Object[]) Méthode

Définition

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.

S’applique à