ISecurityDescriptor.LabelSecurity

Syntax

LabelSecurity: ISecurityLabels;

Description

The LabelSecurity property returns parameters of the object security labels.

Comments

The property is relevant only for table, calculated dictionaries and for standard and composite MDM dictionaries.

Example

Executing the example requires that the repository contains an MDM dictionary with the RDS_DICT identifier.

Sub Main;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
    SecDesc: ISecurityDescriptor;
    SecLab: ISecurityLabels;
Begin
    MB := MetabaseClass.Active;
    MDesc := MB.ItemById("RDS_DICT");
    SecDesc := MDesc.SecurityDescriptor;
    SecDesc.Edit;
    SecLab := SecDesc.LabelSecurity;
    SecLab.Mapping(4) := MB.Security.Users.Item(1);
    SecDesc.Apply(True);
End Sub Main;

After executing the example the second user of the current repository is compared with the fourth bit of the mask in security label settings.

See also:

ISecurityDescriptor