xInfo.rootNode Method

Definition

Retrieves the root of the application object tree.

public:
 virtual Dynamics::AX::Application::TreeNode ^ rootNode();
public virtual Dynamics.AX.Application.TreeNode rootNode ();
abstract member rootNode : unit -> Dynamics.AX.Application.TreeNode
override this.rootNode : unit -> Dynamics.AX.Application.TreeNode
Public Overridable Function rootNode () As TreeNode

Returns

The root of the application object tree.

Remarks

The following example prints out all the names of the methods in the AddressSelectForm class. The rootnode method is used to set the treenode object to the AOT root before selecting a child node.

{ 
    Treenode treenode; 
    TreenodeIterator it; 
    treenode = infolog.rootNode(); 
    treenode = treenode.AOTfindChild("Classes"); 
    treenode = treenode.AOTfindChild("AddressSelectForm"); 
    it = treenode.AOTiterator(); 
    while (treenode) 
    { 
       print treenode.treeNodeName(); 
       treenode = it.next(); 
    } 
    pause; 
}

Applies to