System.Messaging.TObjectMessage.FOwnsObject
Delphi
FOwnsObject: Boolean;
C++
bool FOwnsObject;
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| field | protected | System.Messaging.pas System.Messaging.hpp  | 
        System.Messaging | TObjectMessage | 
Description
Determines whether the message takes ownership of the object in FValue (True) or not (False).
- If FOwnsObject is 
True, the object in FValue is destroyed automatically when you destroy the message. - If FOwnsObject is 
False, TObjectMessage behaves as TMessage; you must destroy the object in FValue manually.