IMetabaseGroup.RemoveMember

Syntax

RemoveMember(Subject: ISecuritySubject);

Parameters

Subject - a security subject that should be removed.

Description

The RemoveMember method removes the security subject that is passed by the Subject parameter from this group of users.

Example

Sub Main;

Var

MB: IMetabase;

Sec: IMetabaseSecurity;

MG: IMetabaseGroups;

Group: IMetabaseGroup;

SS: ISecuritySubject;

Begin

MB := MetabaseClass.Active;

Sec := MB.Security;

MG := Sec.Groups;

Group := MG.Item(0);

SS := Group.Member(0);

Group.RemoveMember(SS);

Sec.Apply;

End Sub Main;

The security subject is removed from the first group of users after executing this example.

See also:

IMetabaseGroup