ISessionObject::putref_Value

The ISessionObject::putref_Value method stores a COM Automation object in the Session object. Equivalent to put_Value for non-COM objects.

HRESULT putref_Value(

  BSTR bstrValue,   // contains the new variable name

  VARIANT var  // VARIANT to store in the variable

);

 

Parameters
bstrValue
[in] A binary string that contains the new variable name.
var
[in] A VARIANT to store in the variable.
Remarks

Before you store an object in the Session object, you should know what threading model it uses. For more information, see Component Design Guidelines.

See Also

Session Object