This documentation is archived and is not being maintained.

Delegate.DynamicInvokeImpl Method

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

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

protected virtual Object DynamicInvokeImpl (
	Object[] args
)
protected Object DynamicInvokeImpl (
	Object[] args
)
protected function DynamicInvokeImpl (
	args : Object[]
) : Object
Not applicable.

Parameters

args

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

-or-

a null reference (Nothing in Visual Basic), if the method represented by the current delegate does not require arguments.

Return Value

The object returned by the method represented by the delegate.

Exception typeCondition

MemberAccessException

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.

TargetException

The method represented by the delegate is an instance method and the target object is a null reference (Nothing in Visual Basic).

-or-

The method represented by the delegate is invoked on an object or a class that does not support it.

TargetInvocationException

One of the encapsulated methods throws an exception.

This method implements the DynamicInvoke method.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: