System.Classes.TObservers.TryIsObserving
Delphi
function TryIsObserving(const ID: Integer; out AIntf: IInterface): Boolean; virtual;
C++
virtual bool __fastcall TryIsObserving(const int ID, /* out */ System::_di_IInterface &AIntf);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TObservers |
Description
Returns whether the specified observer is active or not and if active, it also returns the observer.
TryIsObserving returns True if the observer given through ID
is active, False otherwise. If the observer is active, the AIntf
output parameter will contain the observer.