Microsoft SDK for Java

dynamicInvoke

This method of the Delegate class invokes the target method referenced by the Delegate on the target object referenced by the delegate with the given parameters. The parameters must be packaged as an Object array according to the rules of Java Reflection.

Syntax

public final Object dynamicInvoke(Object[] args) throws IllegalArgumentException, InvocationTargetException;

Parameters

args Invocation of the target method.

Return Value

Returns null if the delegate type is void. For other delegate types, returns an Object that must be unwrapped or typecast to produce a correctly typed value.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.