Share via


SysTreeNode::getLayeredNode Method [AX 2012]

Gets the version of a Treenode class from the layer stack.

Syntax

client server public static TreeNode getLayeredNode(
    TreeNode treeNode, 
    int n, 
   [boolean old])

Run On

Called

Parameters

  • treeNode
    Type: TreeNode Class
    The Treenode class to retrieve the tree node from.
  • n
    Type: int
    The level in the layer stack to retrieve; 0 is the highest, 1 is the second highest, and so on.
  • old
    Type: boolean
    A Boolean value that indicates whether to retrieve old tree nodes.

Return Value

Type: TreeNode Class
The tree node from the requested position in the layer stack.

Remarks

It is the consumer’s responsibility to free the memory consumed by the returned tree node.

If a requested version does not exist, null Nothing nullptr unit a null reference (Nothing in Visual Basic) will be returned.

See Also

Reference

SysTreeNode Class