ObjectNode(Index: MetabaseSpecialObject): IMetabaseUpdateObjectNode;
Index - a type of the special object.
The ObjectNode property returns an element of the update tree that corresponds to the special object.
If the specified special object was not included in the update, the property returns Null.
Executing the example requires the update file C:\Update.pef.
Sub Main;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
SpecialObjNode: IMetabaseUpdateSpecialObjectsNode;
Node: IMetabaseUpdateObjectNode;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFile("C:\Update.pef");
SpecialObjNode := Update.SpecialObjectsNode;
Node := SpecialObjNode.ObjectNode(MetabaseSpecialObject.DefaultTopobase);
If Node <> Null Then
Debug.WriteLine(Node.Object.Id);
End If;
End Sub Main;
The C:\Update.pef update file is opened after executing this example. If the special object, map by default, was included in this update, the identifier of the object in which the topobase of the map was stored, would be displayed in the development environment console.
See also: