Dynamic Invoke(Object) Method
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.
Dynamically invokes (late-bound) the method represented by the current delegate.
public: System::Object ^ DynamicInvoke(... cli::array <System::Object ^> ^ args);
public: System::Object ^ DynamicInvoke(cli::array <System::Object ^> ^ args);
public object DynamicInvoke (params object args);
public object? DynamicInvoke (params object?? args);
public object DynamicInvoke (object args);
member this.DynamicInvoke : obj -> obj
Public Function DynamicInvoke (ParamArray args As Object()) As Object
Public Function DynamicInvoke (args As Object()) As Object
An array of objects that are the arguments to pass to the method represented by the current delegate.
null, if the method represented by the current delegate does not require arguments.
The object returned by the method represented by the delegate.
The caller does not have access to the method represented by the delegate (for example, if the method is private).
The number, order, or type of parameters listed in
args is invalid.
The method represented by the delegate is invoked on an object or a class that does not support it.
The method represented by the delegate is an instance method and the target object is
One of the encapsulated methods throws an exception.
This method calls the DynamicInvokeImpl method.