IDomainStations.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index is a station index in the collection.

Description

The Remove method removes a station from the collection by its index. Returns True if address with the Index index was successfully removed.

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.Remove(0);

Sec.Apply;

End Sub Button1OnClick;

Pressing the button, for the ADMIN user, will remove the first address from the collection of IP-addresses that give this user an access.

See also:

IDomainStations