ReadUpdate(Update: IMetabaseUpdate; [Mode: UpdateLoadMode = 0]);
Update. Update that will open.
Mode. Mode of adding objects to update. The parameter is not mandatory for Fore, the UpdateLoadMode.Replace value is sent by default: if the created update contains the objects, they are replaced with the objects from the update that opens.
The ReadUpdate method opens update from the repository.
Executing the example requires that the repository contains an update with the ObjPefx identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
UpdateObj: IMetabaseUpdateObject;
Begin
MB := MetabaseClass.Active;
Update := MB.CreateUpdate;
UpdateObj := MB.ItemById("ObjPefx").Bind As IMetabaseUpdateObject;
UpdateObj.ReadUpdate(Update);
Update.SaveToFileNF("D:\Work\Update.pefx");
End Sub UserProc;
After executing the example the update from the repository is opened and saved to the specified file.
See also: