DispatchProxy.Invoke(MethodInfo, Object[]) Method
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);
C#
protected abstract object Invoke(System.Reflection.MethodInfo targetMethod, object[] args);
C#
protected abstract object? Invoke(System.Reflection.MethodInfo? targetMethod, object?[]? args);
C#
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
- targetMethod
- MethodInfo
The method the caller invoked.
- args
- Object[]
The arguments the caller passed to the method.
The object to return to the caller, or null
for void methods.
Proizvod | Verzije |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided), 2.1 |
UWP | 10.0 |
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: