Datasnap.DSTCPServerTransport.TDSTCPServerTransport.Notification
Delphi
procedure Notification(AComponent: TComponent; Operation: TOperation);
C++
virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
protected | Datasnap.DSTCPServerTransport.pas Datasnap.DSTCPServerTransport.hpp |
Datasnap.DSTCPServerTransport | TDSTCPServerTransport |
Description
Répond quand des composants sont créés ou détruits.
N'appelez pas la méthode Notification dans une application. Notification est automatiquement appelée lorsque le composant spécifié par AComponent va être inséré ou retiré, comme indiqué par le paramètre Operation.
TDSTCPServerTransport redéfinit la méthode Notification pour vérifier si le composant représentant la valeur de la propriété Server va être libéré. Si c'est le cas, il affecte à la propriété Server la valeur nil (Delphi) ou NULL (C++).