DispatchProxy.Invoke(MethodInfo, Object[]) Metodo

Definizione

Ogni volta che viene chiamato qualsiasi metodo sul tipo di proxy generato, questo metodo viene richiamato per il controllo dispatch.

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 passati al metodo dal chiamante.

Valori restituiti

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

Si applica a