GetPathFromAncestor Method (NNode)
Returns the path from the node to the specified ancestor. The returned path has a root-to-leaf order, meaning that ancestor nodes appear before descendant nodes in the list order.
Parameters
- ancestor
- ancestor
- includeNode
- whether this node must be included in the path
- includeAncestor
- whether the ancestor must be included in the path
Return Value
path from this node to ancestor
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)