IObjectControl interface

Defines context-specific initialization and cleanup procedures for your COM+ objects, and specifies whether the objects can be recycled.

Methods

The IObjectControl interface has these methods.

Method Description
IObjectControl::Activate Enables a COM+ object to perform context-specific initialization whenever it is activated.
IObjectControl::CanBePooled Notifies the COM+ run-time environment whether the object can be pooled for reuse when it is deactivated.
IObjectControl::Deactivate Enables a COM+ object to perform required cleanup before it is recycled or destroyed.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See Also

COM+ Contexts and Threading Models

Context Activation