IsObjectLabelSupported: Boolean;
IsObjectLabelSupported: Boolean;
The IsObjectLabelSupported property returns whether a criticality label, corresponding to an access level, is set for the object, on which the operation is executed.
If the criticality label is selected for an object property returns True, otherwise - False.
To execute the example, add a link to the Metabase assembly.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
AL: IAuditLog;
ALogon: IAuditLogons;
Operat: IAuditOperations;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
Al:=MS.OpenAuditLog;
ALogon:= AL.OpenLogons(False);
ALogon.Next;
Operat:=Al.OpenOperations(ALogon.Session);
Debug.Writeline ("Criticality label is selected: " + Operat.IsObjectLabelSupported.ToString);
End Sub Main;
After executing this example the True or False value is displayed to the console, it depends whether the criticality label was selected for an object under that the last operation was performed.
This example is an entry point for any .NET assembly.
Public Shared Sub Main(Params : StartParams);
Var
MB: IMetabase;
MS: IMetabaseSecurity;
AL: IAuditLog;
ALogon: IAuditLogons;
Operat: IAuditOperations;
Begin
MB:=Params.Metabase;
MS:=MB.Security;
Al:=MS.OpenAuditLog();
ALogon:= AL.OpenLogons(False);
ALogon.Next();
Operat:=Al.OpenOperations(ALogon.Session);
System.Diagnostics.Debug.Writeline ("Criticality label is selected: " + Operat.IsObjectLabelSupported.ToString());
End Sub;
After executing this example the True or False value is displayed to the console, it depends whether the criticality label was selected for an object under that the last operation was performed.
See also: