System.Classes.TObservers.TryIsObserving

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also