Description: String;
The Description property determines the description, that is used in the text of a label placed in the right upper corner of the first sheet when marking the objects during the objects export and printing.
If the description is empty, the security level name is used when marking.
Sub UserProc;
Var
MB: imetabase;
se: IMetabaseSecurity;
PO: IMetabasePolicy;
MA: IMetabaseMandatoryAccess;
Ctgr: ISecurityCategory;
SecLvl: ISecurityLevel;
Begin
MB := MetabaseClass.Active;
SE := MB.Security;
PO := SE.Policy;
MA := PO.MandatoryAccess;
Ctgr := MA.Category(0);
SecLvl := Ctgr.Level(1);
WinApplication.InformationBox(SecLvl.Name);
SecLvl.Description := "For office use";
SecLvl.Marking := True; // To mark the objects when exporting and printing
SecLvl.TreatSectionAsDocument := True; // Treat the document section as a separate document
SE.Apply;
End Sub UserProc;
After executing the example the security level parameters are changed.
See also: