DispatchProxy.Invoke(MethodInfo, Object[]) 方法

定义

每当调用生成的代理类型的任何方法时,将调用此方法以调度控制。

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

参数

targetMethod
MethodInfo

调用方调用的方法。

args
Object[]

传递给方法的调用方的参数。

返回

要返回到调用方或 null void 方法的对象。

适用于