IMetabase.LogonSession

Syntax

LogonSession: ILogonSession;

Description

The LogonSession property returns information about the current session with the repository.

Example

Sub Main;

Var

MB: IMetabase;

LS: ILogonSession;

Begin

MB := MetabaseClass.Active;

LS := MB.LogonSession;

Debug.WriteLine(LS.User.Name);

Debug.WriteLine(LS.UserIP);

End Sub Main;

After executing the example the name and IP-address, with which the user connected to the repository, are displayed in a development environment console.

See also:

IMetabase