IMetabaseSecurity.RemoveSubject

Syntax

RemoveSubject(Subj: ISecuritySubject): Boolean;

Parameters

Subj - a security subject, that needs removing.

Description

The RemoveSubject method removes the security subject, passed by the Subj parameter.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

SS: ISecuritySubject;

Begin

MB:=MetabaseClass.Active;

MS:=MB.Security;

SS := MS.Groups.Item(MS.Groups.Count - 1);

MS.RemoveSubject(SS);

End Sub Main;

After executing the example the last users group, created in security manager of the current repository, is removed.

See also:

IMetabaseSecurity