IMetabaseUpdateNode.Enabled

Syntax

Enabled: Boolean;

Description

The Enabled property determines whether an object should be updated.

Comments

Available values:

Example

Executing the example requires the update file C:\Update.pefx. The repository should contain an object with the OBJ_FOR_PEF identifier. Add a link to the Metabase system assembly.

    Sub UserProc;
    Var
        MB: IMetabase;
        Update: IMetabaseUpdate;
        UFN: IMetabaseUpdateFolderNode;
        UpdateObj: IMetabaseUpdateObjectNode;
    Begin
        MB := MetabaseClass.Active;
        Update := Mb.CreateUpdate;
        Update.LoadFromFileNF("C:\Update.pefx");
        UFN := Update.RootFolder;
        UpdateObj := UFN.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateObjectNode;
        UpdateObj.Object := MB.ItemById("OBJ_FOR_PEF");
        UpdateObj.Enabled := False;
        Update.SaveToFileNF("C:\Update.pefx");
    End Sub UserProc;

After executing the example, the OBJ_FOR_PEF object will be added to the C:\Update.pefx update structure. This object will be ignored during update.

See also:

IMetabaseUpdateNode