次の方法で共有


ISessionObject::putref_Value

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

HRESULT putref_Value(
      BSTR bstrValue,
      VARIANT var
);

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 Setting the Scope of COM Objects in ASP Pages. For code examples of COM components that can be called from ASP, see Creating COM Components for ASP.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also