ClientMonitorHooksIn method |
Applies to
TIB_SessionBase
Declaration
Function ClientMonitorHooksIn: boolean;
Description
This function returns true if there are hooks engaged to monitor any
activity created by calls to the OutputToMonitor() method. This can be
used to reduce the impact of tracing code when an IB_Monitor is not in use.
e.g.
with TheComponent do begin
if IB_Session.ClientMonitorHooksIn then begin
IB_Session.OutputToMonitor( 'Something important happened!' );
end;
end;