IMetabasePolicy.PrivilegeName

Syntax

PrivilegeName(Index: Integer): String;

Parameters

Index. Privilege index.

Description

The PrivilegeName property returns element privilege by index.

Comments

The available number of privileges is returned by the PrivilegeCount property.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    Mb: IMetabase;
    Policy: IMetabasePolicy;
    i, c: Integer;
Begin
    Mb := MetabaseClass.Active;
    Policy := Mb.Security.Policy;
    // Available number of privileges
    c := Policy.PrivilegeCount;
    // Privilege names
    For i := 0 To c - 1 Do
        Debug.WriteLine(Policy.PrivilegeName(i));
    End For;
End Sub UserProc;

After executing the example the development environment console displays privilege names available in the security manager.

See also:

IMetabasePolicy