Partager via


TreeNode.AOTchildNodeCount Method

Definition

Counts the number of child nodes that a given tree node has.

public:
 virtual int AOTchildNodeCount();
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public virtual int AOTchildNodeCount ();
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
abstract member AOTchildNodeCount : unit -> int
override this.AOTchildNodeCount : unit -> int
Public Overridable Function AOTchildNodeCount () As Integer

Returns

An integer that indicates the number of child nodes for the tree node.

Attributes
Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute

Remarks

The following example prints the number of child nodes that appear under the Menu Items node in the Application Object Tree (AOT).

#AOT 
static void myJobAOTchildNodeCount(Args _args) 
{ 
    treeNode treeNode = TreeNode::findNode(#MenuItemsPath); 
    print "Number of nodes below Menu Items: ", treeNode.AOTchildNodeCount(); 
    pause; 
}

Applies to