ILogonSession.User

Syntax

User: IMetabaseUser;

Description

The User property returns information about the current repository user.

Example

Sub Main;
Var
    MB: IMetabase;
    LogSes: ILogonSession;
    User: IMetabaseUser;
Begin
    MB := MetabaseClass.Active;
    LogSes := MB.LogonSession;
    User := LogSes.User;
    Debug.WriteLine(User.Name + " | " + User.FullName);
End Sub Main;

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

See also:

ILogonSession