ISecurityDescriptor.LabelSecurity

Syntax

LabelSecurity: ISecurityLabels;

Description

The LabelSecurity property returns parameters of the object security labels.

It is relevant for the table, calculated dictionaries and for the common and composite MDM dictionaries.

Example

Sub Main;

Var

MB: IMetabase;

MDesc: IMetabaseObjectDescriptor;

SecDesc: ISecurityDescriptor;

SecLab: ISecurityLabels;

Begin

MB:=MetabaseClass.Active;

MDesc:=MB.ItemById("Dim_1");

SecDesc:=MDesc.SecurityDescriptor;

SecDesc.Edit;

SecLab:=SecDesc.LabelSecurity;

SecLab.Mapping(4):=MB.Security.Users.Item(1);

SecDesc.Apply(True);

End Sub Main;

After executing this example the second user of the current repository is compared with the fourth bit of the mask. An object that contains security label is a table dictionary with the Dim_1 identifier.

See also:

ISecurityDescriptor