FMX.MediaLibrary.TMessageDidFailTaking

Delphi
TMessageDidFailTaking = class(TMessage<TTakingFailureCause>);
C++
class PASCALIMPLEMENTATION TMessageDidFailTaking : public System::Messaging::TMessage__1<TTakingFailureCause>
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.MediaLibrary.pas FMX.MediaLibrary.hpp |
FMX.MediaLibrary | FMX.MediaLibrary |
Description
Represents the base class for all messages.
FMX.MediaLibrary.TMessageDidFailTaking inherits from System.Messaging.TMessage. All content below this line refers to System.Messaging.TMessage.
Represents the base class for all messages.
TMessage represents the base class used for message purposes. It can be inherited in order to send custom messages.
Warning: For C++ projects, use TMessageBase instead.
Using Objects as Contents
The contents of a TMessage can be of any type, including classes. However, when you create a TMessage with an object as value, TMessage does not take ownership of the object; you must delete the object yourself, and ensure that the message has been deleted first. TObjectMessage, a subclass of TMessage, allows messages to take ownership of their contents.
See Also
- System.Messaging.TMessageBase
- Sending and Receiving Messages Using the RTL
- System.Messaging.TMessageManager
- System.Messaging (Delphi) code example
- System.Messaging (C++) code example