TreeNode.treeNodePath Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the unique path to the tree node within the Application Object Tree (AOT).
public:
virtual System::String ^ treeNodePath();
public virtual string treeNodePath ();
abstract member treeNodePath : unit -> string
override this.treeNodePath : unit -> string
Public Overridable Function treeNodePath () As String
Returns
Returns the unique path of the tree node in the AOT.
Remarks
The following example finds a TreeNode object of each UtilFileType and prints the path of the UtilFileType to the Infolog.
static void myJob(Args _args)
{
treeNode tn;
tn = treeNode::findNode("\\Forms");
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
tn = treeNode::findNode("\\System Documentation");
tn = tn.AOTfirstChild();
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
tn = treeNode::findNode("\\Application Developer Documentation");
tn = tn.AOTfirstChild();
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
tn = treeNode::findNode("\\Application Documentation");
tn = tn.AOTfirstChild();
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
}