PrivilegeName(Index: Integer): String;
Index. Privilege index.
The PrivilegeName property returns element privilege by index.
The available number of privileges is returned by the PrivilegeCount property.
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: