Export (0) Print
Expand All

IComObjectPoolEvents interface

Notifies the subscriber when a new object is added to the pool. The subscriber is also notified when a transactional or non-transactional object is obtained or returned to the pool. 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.

When to implement

The subscriber must implement this interface to receive these events. The subscriber subscribes to the events publisher, which publishes the events. The subscriber can also choose which event to fire by registering an event class. The class ID is CLSID_ComServiceEvents.

When to use

Use IComObjectPoolEvents when you want to be notified about events related to COM+ object pooling.

Members

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

Methods

The IComObjectPoolEvents interface has these methods.

MethodDescription
OnObjPoolGetFromTx

Generated when a transactional object is obtained from the pool.

OnObjPoolGetObject

Generated when a non-transactional object is obtained from the pool.

OnObjPoolPutObject

Generated when a new object is added to the pool.

OnObjPoolRecycleToTx

Generated when a transactional object is returned to the pool.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComSvcs.h

See also

COM+ Events
COM+ Instrumentation

 

 

Community Additions

ADD
Show:
© 2014 Microsoft