Microsoft SDK for Java

putRef

The putRef method of the Dispatch Class contains the following signatures:

putRef(Object pDispatch, String dispName, Object val)
putRef(Object pDispatch, int dispid, Object val)

putRef(Object pDispatch, String dispName, Object val)

Sets an object property on an ActiveX Automation object.

Syntax

public static void putRef(Object pDispatch, String dispName, Object val);

Parameters

pDispatch The Java proxy of the ActiveX Automation object.
dispName The name of the property that is set by this method.
val The value to assign to the property.

putRef(Object pDispatch, int dispid, Object val)

Sets an object property on an ActiveX Automation object.

Syntax

public static void putRef(Object pDispatch, int dispid, Object val);

Parameters

pDispatch The Java proxy of the ActiveX Automation object.
dispid The identifier of the property that is set by this method.
val The value to assign to the property.

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