IMetabaseUpdateSpecialObjectsNode.ObjectNode

Syntax

ObjectNode(Index: MetabaseSpecialObject): IMetabaseUpdateObjectNode;

Parameters

Index - type of special object.

Description

The ObjectNode property returns the 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.

Example

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;

After executing the example the C:\Update.pef update file is opened. If the special object, map by default, was included in this update, the identifier of the object, in which the map topobase was stored, will be displayed in the development environment console.

See also:

IMetabaseUpdateSpecialObjectsNode