IAuditOperations.Session

Syntax

Session: Integer;

Description

The Session property returns a number of the session, in which the operation was executed.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

AL: IAuditLog;

ALogon: IAuditLogons;

Operat: IAuditOperations;

i: Integer;

Begin

MB:=MetabaseClass.Active;

MS:=MB.Security;

Al:=MS.OpenAuditLog;

ALogon:= AL.OpenLogons(False);

Operat:=Al.OpenOperations(ALogon.Session);

i:=Operat.Session;

End Sub Main;

After executing the example the "i" variable contains a number of the session, in which the last operation was executed.

See also:

IAuditOperations