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, //binary string that contains the new variable name VARIANT var //VARIANT to store in the variable );
Before you store an object in the Session object, you should know what threading model it uses. For more information, see Component Design Guidelines.