CountLogons([NoFilterLogons: Boolean = False]): Integer;
NoFilterLogons — the conditions of filter should not be taken into account.
TRUE — the access protocol will not be filtered, i.e. the number of all record about connections to repository (login) will be returned.
FALSE — the access protocol will be filtered. The conditions of filtering are determined by "IAuditFilter". The number of records about the connections to the repository taking into account the filtering will be returned.
The optional parameter has the True value by default.
Read-only.
The CountLogons method returns the number of records about the connections to the repository (login) in the access protocol.
Sub Main;
Var
MB: IMetabase;
Se: IMetabaseSecurity;
ALog: IAuditLog;
Count: Integer;
Begin
MB := IMetabase.Active;
Se := MB.Security;
ALog := Se.OpenAuditLog;
Count := ALog.CountLogons;
End Sub Main;
After executing this example the Count variable contains the number of records about the connections to the repository (login) in the access protocol.
See also: