Share via


xInfo.projectRootNode Method

Definition

Returns the X++ Projects node.

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

Returns

The tree node that contains the X++ projects.

Remarks

The following example prints out the names of all the projects in the Shared projects folder.

void ProjectNames() 
{ 
    Treenode treenode; 
    TreenodeIterator it; 
    treenode = infolog.projectRootNode(); 
    treenode = treenode.AOTfindChild("Shared"); 
    it = treenode.AOTiterator(); 
    while (treenode) 
    { 
       print treenode.treeNodeName(); 
       treenode = it.next(); 
    } 
    pause; 
}

Applies to