Enabled: Boolean;
The Enabled property determines whether the object should be updated.
Available values:
Enabled = True. Default value. The object will be updated.
Enabled = False. The object will not be updated, but it will remain 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 performance.
See also: