IConnectedUserInfo.NETAddress

Syntax

NetAddress: String;

Description

The NetAddress property returns the MAC-address of the computer from which the connection to the repository was established.

Example

Sub Main;

Var

MB: IMetabase;

Users: IConnectedUsersInfo;

User: IConnectedUserInfo;

Begin

MB := MetabaseClass.Active;

Users := MB.GetConnectedUsers;

For Each User In Users Do

Debug.WriteLine("Station: " + User.HostName + "; MAC-address: " + User.NETAddress);

Debug.WriteLine("DBMS user: " + User.UserDbName + "; OS user: " + User.UserOsName);

End For;

End Sub Main;

After executing the example information about all users, connected to the current repository, is displayed in a development environment console.

See also:

IConnectedUserInfo