Datasnap.DSTCPServerTransport.TDSTCPServerTransport.Notification

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Datasnap.DSTCPServerTransport.pas
Datasnap.DSTCPServerTransport.hpp
Unit: Datasnap.DSTCPServerTransport
Parent: TDSTCPServerTransport

Delphi

procedure Notification(AComponent: TComponent; Operation: TOperation);

C++

virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);

Description

Responds when components are created or destroyed.

Do not call the Notification method in an application. Notification is called automatically when the component specified by AComponent is about to be inserted or removed, as specified by the Operation parameter.

TDSTCPServerTransport overrides the Notification method to check whether the component that is the value of the Server property is about to be freed. If so, it sets the Server property to nil (Delphi) or NULL (C++).

See Also