IComObjectPoolEvents2 interface (comsvcs.h)

Notifies the subscriber when a new object is created for or removed from the pool. The subscriber is also notified when a new object pool is created or when the request for a pooled object times out. The events are published to the subscriber using the COM+ Events service, a loosely coupled events system that stores event information from different publishers in an event store in the COM+ catalog.

Inheritance

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

Methods

The IComObjectPoolEvents2 interface has these methods.

 
IComObjectPoolEvents2::OnObjPoolCreateDecision

Generated when a pool provides a requesting client with an existing object or creates a new one.
IComObjectPoolEvents2::OnObjPoolCreateObject

Generated when an object is created for the pool.
IComObjectPoolEvents2::OnObjPoolCreatePool

Generated when a new pool is created.
IComObjectPoolEvents2::OnObjPoolDestroyObject

Generated when an object is permanently removed from the pool.
IComObjectPoolEvents2::OnObjPoolTimeout

Generated when the request for a pooled object times out.

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+ Events

COM+ Instrumentation