AllStations: IStations;
The AllStations property returns the collection of workstations in the network in which working with the platform will be performed.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
Stat: IStations;
St: IStation;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
Stat := MS.AllStations;
Stat.Refresh;
For Each St In Stat Do
Debug.WriteLine(St.Name + " " + St.FullName);
End For;
End Sub Main;
After executing the example names and full names of the workstations, that are in the network, are displayed in a development environment console. In future, access to these stations can be restricted entirely or for specific users.
See also: