xInfo.projectRootNode Method

Returns the X++ Projects node.

Syntax

public TreeNode projectRootNode()

Run On

Called

Return Value

Type: TreeNode Class
The tree node that contains the X++ projects.

Examples

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; 
}

See Also

xInfo Class

TreeNode Class