Microsoft SDK for Java

getIDOfName

This method of the Dispatch Class maps the name of a dispmember to its dispid. This method is a direct wrapper around the IDispatch::GetIDsOfNames call.

Syntax

public static int getIDOfName(Object pDispatch, String dispName);

Return Value

Returns the dispid that corresponds to the specified name.

Parameters

pDispatch The Java proxy of the ActiveX Automation object.
dispName The name that is resolved.

Exceptions

A ComFailException is thrown if the name is not recognized by the object.

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