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.
To execute the example, add a link to the Metabase system assembly. An update with the ObjPefx identifier should exist in the repository.
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("C:\Update.pefx");
End Sub UserProc;
After executing the example the update from the repository is opened and saved to the C:\Update.pefx file.
See also: