ObjectControl interface (comsvcs.h)

If you implement this interface in your component, the COM+ run-time environment automatically calls its methods on your objects at the appropriate times. Only the COM+ run-time environment can invoke the ObjectControl methods; they are not accessible to an object's clients or to the object itself. If a client queries for the ObjectControl interface, QueryInterface returns E_NOINTERFACE.

ObjectControl and IObjectControl provide the same functionality, but unlike IObjectControl, ObjectControl is compatible with Automation.

Inheritance

The ObjectControl interface inherits from the IUnknown interface. ObjectControl also has these types of members:

Methods

The ObjectControl interface has these methods.

 
ObjectControl::Activate

Enables a COM+ object to perform context-specific initialization whenever it is activated. (ObjectControl.Activate)
ObjectControl::CanBePooled

Indicates whether the object can be pooled for reuse when it is deactivated.
ObjectControl::Deactivate

Enables a COM+ object to perform cleanup required before it is recycled or destroyed.

Requirements

Requirement Value
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

IObjectControl