A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.delegate.dynamicinvoke below:

Delegate.DynamicInvoke(Object[]) Method (System) | Microsoft Learn

Delegate.DynamicInvoke(Object[]) Method Definition

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
Parameters
args
Object[]

An array of objects that are the arguments to pass to the method represented by the current delegate.

-or-

null, if the method represented by the current delegate does not require arguments.

Returns

The object returned by the method represented by the delegate.

Exceptions

The args array does not have the correct number of arguments.

The elements of the args array do not match the signature of the delegate.

The method represented by the delegate is an instance method and the target object is null.

-or-

One of the encapsulated methods throws an exception.

The caller does not have access to the method represented by the delegate (for example, if the method is private).

-or-

The number, order, or type of parameters listed in args is invalid.

Remarks

This method calls the DynamicInvokeImpl method.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4