Description: String;
Description: System.String;
The Description property returns description of the privilege.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MP: IMetabasePolicy;
Priv: IPrivilege;
S: String;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
MP := MS.Policy;
Priv := MP.Privilege("LOGIN");
Debug.WriteLine(Priv.Description);
End Sub UserProc;
Imports Prognoz.Platform.Interop.Metabase;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MP: IMetabasePolicy;
Priv: IPrivilege;
S: String;
Begin
MB := Params.Metabase;
MS := MB.Security;
MP := MS.Policy;
Priv := MP.Privilege["LOGIN"];
System.Diagnostics.Debug.WriteLine(Priv.Description);
End Sub;
After executing the example the development environment console displays the description of the privilege with the LOGIN name.
See also: