Uređivanje

Dijeli putem


Delegate.DynamicInvokeImpl(Object[]) Method

Definition

Dynamically invokes (late-bound) the method represented by the current delegate.

protected:
 virtual System::Object ^ DynamicInvokeImpl(cli::array <System::Object ^> ^ args);
protected virtual object? DynamicInvokeImpl (object?[]? args);
protected virtual object DynamicInvokeImpl (object[] args);
abstract member DynamicInvokeImpl : obj[] -> obj
override this.DynamicInvokeImpl : obj[] -> obj
Protected Overridable Function DynamicInvokeImpl (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 implements the DynamicInvoke method.

Applies to

See also