IDomainStations.Add

Syntax

Add(Name: String): IStation;

Parameters

Name is a workstation name.

Description

The Add method adds a workstation to the collection.

Example

Executing the example requires a form, a button named Button1 on this form.

Sub Button1OnClick(Sender: Object; Args: IEventArgs);

Var

MB: IMetabase;

Sec: IMetabaseSecurity;

m_User: IMetabaseUser;

DS: IDomainStations;

Begin

MB := MetabaseClass.Active;

Sec := MB.Security;

m_User := Sec.ResolveName("ADMIN") As IMetabaseUser;

DS := m_User.StationIPs;

DS.Add("10.0.2.158");

Sec.Apply;

End Sub Button1OnClick;

By default the user can access the system from any workstation, IP and MAC-addresses. On clicking the button, the ADMIN user is granted the access from the IP-address "10.0.2.158" only.

See also:

IDomainStations