System.Win.Mtsobj.TMtsAutoObject.Pooled

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Pooled: Boolean read FCanBePooled write FCanBePooled;

C++

__property bool Pooled = {read=FCanBePooled, write=FCanBePooled, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Win.Mtsobj.pas
System.Win.Mtsobj.hpp
System.Win.Mtsobj TMtsAutoObject

Description

Indicates whether the object can be pooled when installed under COM+.

Set Pooled to indicate whether instances of the MTS Automation object can be pooled when installed under COM+. The MTS Automation object uses the Pooled property when implementing the IObjectControl method CanBePooled. This instructs COM+ that the object can be moved to an object pool when deactivated, so that the single instance is shared by all clients.

Warning: Do not set Pooled to True unless the MTS Automation object is stateless.

See Also