Partilhar via


IApplicationObject::putref_Value

The IApplicationObject::putref_Value method stores an Automation object in the Application Object. Equivalent to put_Value for non-Automation objects.

HRESULT putref_Value(
      BSTR bstrValue,
      VARIANT var
);

Parameters

  • bstrValue
    [in] A BSTR that contains the name of the object to retrieve.

  • var
    [in] A variant that contains the reference to the Automation object.

Remarks

You can use this method to create a reference to an Automation object. You should be careful about using this method, because giving some Automation objects application scope will have a negative impact on server performance. For more information, see Selecting a Threading Model.

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