IMetabasePolicy.AuditClipboardOperations

Syntax

AuditClipboardOperations: Boolean;

AuditClipboardOperations: System.Boolean;

Description

The AuditClipboardOperations property determines logging of operations of copying to clipboard.

Comments

If the value is True, operations of copying to clipboard are logged.

Example

To execute the example, add links to the Metabase, ForeSystem (for the Fore.NET example) system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    MPolicy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    MPolicy := MS.Policy;
    
// Set logging of copy operations to clipboard
    MPolicy.AuditClipboardOperations := True;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;

Public Shared Sub Main(Params : StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    MPolicy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := Params.Metabase;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
    MS := MB.Security;
    MPolicy := MS.Policy;
    
// Set logging of copy operations to clipboard
    MPolicy.AuditClipboardOperations := True;
    
// Save changes
    MS.Apply();
    
// Check in license
    Lic := Null;
End Sub;

After executing the example operations of copying to clipboard are logged.

See also:

IMetabasePolicy