NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Delegate.DynamicInvoke

Invokes the method, represented by the Delegate, dynamically (late-bound).

[Visual Basic]
Public Function DynamicInvoke( _
   ByVal args() As Object _
) As Object
[C#]
public object DynamicInvoke(
   object[] args
);
[C++]
public: Object* DynamicInvoke(
   Object* args[]
);
[JScript]
public function DynamicInvoke(
   args : Object[]
) : Object;

Parameters

args
An array of Object instances which are the arguments to pass to the method represented by the Delegate.

-or-

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

Return Value

The Object returned by the method represented by the Delegate.

Exceptions

Exception Type Condition
AccessException The caller does not have access to the method represented by the Delegate; for instance, 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).

-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. (?)

Remarks

This method calls the DynamicInvokeImpl method.

See Also

Delegate Class | Delegate Members | System Namespace | DynamicInvokeImpl | Object