Microsoft SDK for Java

getIDsOfNames

This method of the Dispatch Class maps the names of a dispmember and parameter names to their dispids. This method is a direct wrapper around the IDispatch::GetIDsOfNames call.

Syntax

public static int[] getIDsOfNames(Object pDispatch, _Guid iid, int lcid, String dispNames[]);

Return Value

Returns an array of resolved dispids.

Parameters

pDispatch The Java proxy of the ActiveX Automation object.
iid The interface to query; if null, the interface identifier defaults to IID_IDispatch.
lcid The locale identifier.
dispNames The array of names to resolve.

Exceptions

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

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