ApplyOptions: MetabaseUpdateApplyOptions;
The ApplyOptions property determines settings of update applying.
Sub UserProc;
Var
Mb: IMetabase;
U: IMetabaseUpdate;
N: IMetabaseUpdateObjectNode;
Begin
mb := MetabaseClass.Active;
U := mb.CreateUpdate;
U.ApplyOptions := MetabaseUpdateApplyOptions.ReopenMetabase Or MetabaseUpdateApplyOptions.FlushCache;
N := U.RootFolder.Add(MetabaseUpdateNodeType.Object) As IMetabaseUpdateObjectNode;
N.Object := mb.ItemById("TABLE");
U.SaveToFileNF("c:\temp\Update1.pefx");
End Sub UserProc;
After applying, an update with assigned parameters is created: after updating, the repository is reopened and the cache is cleared.
See also: