IMetabase.LogonSession

Syntax

LogonSession: ILogonSession;

Description

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

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    LS: ILogonSession;
Begin
    MB := MetabaseClass.Active;
    LS := MB.LogonSession;
    Debug.WriteLine(LS.User.Name);
    Debug.WriteLine(LS.UserIP);
End Sub UserProc;

After executing the example the development environment console displays the name and IP address, with which the user is connected to the repository.

See also:

IMetabase