Copy(Options: MetabaseUpdateCopyType): IMetabaseUpdate;
Copy(Options: Prognoz.Platform.Interop.Metabase.MetabaseUpdateCopyType): IMetabaseUpdate;
Options. The type of update copying.
The Copy method copies the update.
The method is called only on activating the mode of delimiting roles of administrator.
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.
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: