IAuditLog.OpenLogons

Syntax

OpenLogons(NoFilterLogons: Boolean): IAuditLogons;

Parameters

NoFilterLogons determines whether the filter will be used.

Description

The OpenLogons method returns information about connections to the repository.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

AL: IAuditLog;

ALogon: IAuditLogons;

s: String;

Begin

MB:=MetabaseClass.Active;

MS:=MB.Security;

Al:=MS.OpenAuditLog;

ALogon:= AL.OpenLogons(False);

s:=ALogon.UserName;

End Sub Main;

After executing this example the "s" variable contains the name of the last user who entered to the current repository.

See also:

IAuditLog