IMetabaseSecurityExporter.ExportPolicy

Syntax

ExportPolicy;

Description

The ExportPolicy method exports security policy settings.

Comments

Before method call it is necessary to determine a name and location of the file (the FileName property), to which export is executed.

Example

    Sub UserProc;
    Begin
        With Exporter: MetabaseClass.Active.Security.CreateExporter
        Do
            Exporter.FileName := "C:\MetabasePolicy.csv";
            Exporter.FileAppend := True;
            Exporter.ExportPolicy; 
        End With;
    End Sub UserProc;    

After executing the example, security policy settings are exported to the specified file. If the file has already existed, it will be appended.

See also:

IMetabaseSecurityExporter