IRdsDictionaryElement.AccessStr

Syntax

AccessStr(Attribute: RdsAccessAttribute): String;

Parameters

Attribute. Type of access attribute, by which a security label is to be found.

Description

The AccessStr property returns a security label set by specified access attribute for the current element.

Comments

Security label is returned in a string mode. This property is used if access is distributed for more than 32 security subjects.

The example of working with a security label is given in the Controlling Access Permissions to Elements subsection.

Example

Executing the example requires the MDM repository NSI_1 that contains an MDM dictionary with the Dict_1 identifier. Control of access permissions is enabled for dictionary elements.

Sub Main;

Var

MB: IMetabase;

Dict: IRdsDictionary;

DictInst: IRdsDictionaryInstance;

Elements: IRdsDictionaryElements;

Element: IRdsDictionaryElement;

List: IRdsDictionaryElementList;

Begin

MB := MetabaseClass.Active;

Dict := MB.ItemByIdNamespace("Dict_1", MB.ItemById("NSI_1").Key).Bind As IRdsDictionary;

DictInst := Dict.Open(Null);

Elements := DictInst.Elements;

List := Elements.RootItem.Children;

For Each Element In List Do

Debug.WriteLine(Element.AccessStr(RdsAccessAttribute.DeleteAccess));

End For;

End Sub Main;

After executing the example values of a security label set for root elements of the dictionary by the Permission to Delete attribute are displayed in the console window.

See also:

IRdsDictionaryElement