System.Classes.TObservers.AddObserver

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddObserver(const ID: Integer; const AIntf: IInterface); overload; virtual;
procedure AddObserver(const IDs: Array of Integer; const AIntf: IInterface); overload; virtual;

C++

virtual void __fastcall AddObserver(const int ID, const System::_di_IInterface AIntf)/* overload */;
virtual void __fastcall AddObserver(const int *IDs, const System::NativeInt IDs_High, const System::_di_IInterface AIntf)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TObservers

Description

Adds one or more observers to the observers list.

There are two AddObserver overloaded methods. The first one adds a single observer, while the second one adds multiple observers, specified through an array of numerical observer IDs.

See Also