Enabled: Boolean;
The Enabled property determines whether an object should be updated.
Available values:
Enabled = True. Default value. An object will be updated.
Enabled = False. An object will not be updated but it will be kept in the update structure.
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: