IMetabaseUpdate.Copy

Fore Syntax

Copy(Options: MetabaseUpdateCopyType): IMetabaseUpdate;

Fore.NET Syntax

Copy(Options: Prognoz.Platform.Interop.Metabase.MetabaseUpdateCopyType): IMetabaseUpdate;

Parameters

Options. The type of update copying.

Description

The Copy method copies the update.

Comments

The method is called only on activating the mode of delimiting roles of administrator.

Fore Example

To execute the example, add a link to the Metabase system assembly. The C:\Update.pefx update file is required.

Sub Main;
Var
    MB: IMetabase;
    Update: IMetabaseUpdate;
Begin
    MB := MetabaseClass.Active;
    Update := Mb.CreateUpdate;
    Update.LoadFromFileNF("D:\Update.pefx");
    Update.Copy(MetabaseUpdateCopyType.AvailableISA);
    Update.SaveToFileNF("D:\Update_copy.pefx");
End Sub Main;

After executing the example the file is saved as the file with data, available only for the information security administrator.

Fore.NET Example

To execute the example, add a link to the Metabase system assembly. The C:\Update.pefx update file is required.

Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Update: IMetabaseUpdate;
Begin
    MB := Params.Metabase;
    Update := Mb.CreateUpdate();
    Update.LoadFromFileNF("D:\""Update.pefx", UpdateLoadMode.ulmReplace);
    Update.Copy(MetabaseUpdateCopyType.muctAvailableISA);
    Update.SaveToFileNF("D:\""Update_copy.pefx"); 
    End Sub;

After executing the example the file is saved as the file with data, available only for the information security administrator.

See also: