IMetabaseUpdate.ApplyOptions

Syntax

ApplyOptions: MetabaseUpdateApplyOptions;

Description

The ApplyOptions property determines update applying settings.

Example

Executing the example requires that the repository contains a table with the TABLE identifier.

Add a link to the Metabase system assembly.

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:\Update.pefx");
End Sub UserProc;

After executing the example, an update with the specified parameters will be created: the repository will be reopened and cache will be cleared after the update is complete.

See also:

IMetabaseUpdate