Share via


DispatchProxy.Invoke(MethodInfo, Object[]) Metodo

Definizione

Ogni volta che viene chiamato un metodo nel tipo di proxy generato, questo metodo viene richiamato per l'invio del controllo.

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

Parametri

targetMethod
MethodInfo

Metodo richiamato dal chiamante.

args
Object[]

Argomenti che il chiamante ha passato al metodo.

Restituisce

Oggetto da restituire al chiamante, o null per i metodi void.

Si applica a