IDomain.Stations

Syntax

Stations: IDomainStations;

Description

The property is read-only.

The Stations property determines the workstations that are belonged to the domain.

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;

St: IStations;

Dm: IDomains;

Domain: IDomain;

s: Integer;

Begin

MB := MetabaseClass.Active;

Sec := MB.Security;

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

St := m_User.Stations;

Dm := St.Domains;

Domain := Dm.Item(0);

s := Domain.Stations.Count;

End Sub Button1OnClick;

On clicking the button, the number of stations that are belonged to the domain will be stored in the "s" variable.

See also:

IDomain