IMetabaseUpdateNode.NodeType

Syntax

NodeType: MetabaseUpdateNodeType;

Description

The NodeType property returns the type of the update object.

Example

Executing the example requires the c:\update.pef update file.

Add links to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    Update: IMetabaseUpdate;
    UFN: IMetabaseUpdateFolderNode;
    UN: IMetabaseUpdateNode;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Update := Mb.CreateUpdate;
    Update.LoadFromFile("c:\update.pef");
    UFN := Update.RootFolder;
    UN := UFN.Item(0);
    i := UN.NodeType;
End Sub UserProc;

After executing the example, the "i" variable contains the type of the first update object converted to an integer view. The update is loaded from the update.pef file.

See also:

IMetabaseUpdateNode