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.DynamicInvokeImpl

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

[Visual Basic]
Overridable Protected Function DynamicInvokeImpl( _
   ByVal args() As Object _
) As Object
[C#]
protected virtual object DynamicInvokeImpl(
   object[] args
);
[C++]
protected: virtual Object* DynamicInvokeImpl(
   Object* args[]
);
[JScript]
protected function DynamicInvokeImpl(
   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 can be overridden by a derived class.

This method implements the DynamicInvoke method.

See Also

Delegate Class | Delegate Members | System Namespace | DynamicInvoke | Object