BoundType: MetabaseObjectUpdateBoundType;
The BoundType property determines an update type.
Executing the example requires the C:\Update.pefx update file. The repository must contain an object with the OBJ_DEL identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
UFN: IMetabaseUpdateFolderNode;
UON: IMetabaseUpdateDeleteObjectNode;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFileNF("C:\Update.pefx");
UFN := Update.RootFolder;
UON := UFN.Add(MetabaseUpdateNodeType.DeleteObject) As IMetabaseUpdateDeleteObjectNode;
UON.Object := MB.ItemById("OBJ_DEL");
UON.BoundType := MetabaseObjectUpdateBoundType.ById;
Update.SaveToFileNF("C:\Update.pefx");
End Sub UserProc;
After executing the example an object deletion with the OBJ_DEL identifier is added to the update loaded from the C:\Update.pefx file. The By Identifiers update type is set for this object.
See also: