DispatchProxy.Invoke(MethodInfo, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Whenever any method on the generated proxy type is called, this method is invoked to dispatch control.
protected:
abstract System::Object ^ Invoke(System::Reflection::MethodInfo ^ targetMethod, cli::array <System::Object ^> ^ args);
protected:
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);
protected object Invoke (System.Reflection.MethodInfo targetMethod, object[] args);
abstract member Invoke : System.Reflection.MethodInfo * obj[] -> obj
member this.Invoke : System.Reflection.MethodInfo * obj[] -> obj
Protected MustOverride Function Invoke (targetMethod As MethodInfo, args As Object()) As Object
Protected Function Invoke (targetMethod As MethodInfo, args As Object()) As Object
Parameters
- targetMethod
- MethodInfo
The method the caller invoked.
- args
- Object[]
The arguments the caller passed to the method.
Returns
The object to return to the caller, or null
for void methods.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา