TreeNode Class

Definition

The TreeNode class retrieves and represents any node in the Application Object Tree (AOT).

public ref class TreeNode : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
[System.Serializable]
public class TreeNode : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
[<System.Serializable>]
type TreeNode = class
    inherit XppObjectBase
Public Class TreeNode
Inherits XppObjectBase
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
TreeNode
Derived
Attributes
KernelClassAttribute Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute SerializableAttribute

Remarks

This class, and the classes that extend it, enable you to create, read, update, and delete X++ code and metadata. Make sure that the user has access to the development security key (SysDevelopment) before calling this API or APIs that are derived from this class. The TreeNode class can be used to get a handle to any node in the AOT. The TreeNode class is a generic class in that it can be a reference to any type of node in the AOT. In addition to providing access to some of the functions on the shortcut menu of the AOT, this class also contains methods that are used to maneuver in the tree. The TreeNodeTraverser class is also useful in navigating in the AOT. The TreeNode::findNode and TreeNode::rootNode methods return a treeNode object from which you can maneuver to any other node.

Constructors

TreeNode()
TreeNode(IntPtr)

Fields

__k_TreeNodeId
kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
AOTadd(String)
AOTaddExtendedDataType(String, Types)
AOTaddRelation()
AOTaddSubNode(Int32)
AOTaddXref(String, xRefKind, Int32, Int32)
AOTaddXref(String, xRefKind, Int32, Int32, XRefReference)
AOTaddXref(String, xRefKind, Int32, Int32, XRefReference, Int32)
AOTAllowEdit()
AOTbitmapId()

Returns the resource ID of the bitmap of the tree node.

AOTchildNodeCount()

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

AOTcompile()
AOTcompile(Int32)
AOTcompile(Int32, Boolean)
AOTcompile(Int32, Boolean, Boolean)
AOTconfigure()
AOTdelete()
AOTDrop(TreeNode)

Creates a copy of a specified tree node as a child to the TreeNode object.

AOTDrop(TreeNode, TreeNode)
AOTDuplicate()
AOTedit()

Opens the appropriate editor for this node.

AOTedit(Int32)
AOTedit(Int32, Int32)
AOTendXref()
AOTfindChild(String)

Finds the specified child node of this node.

AOTfindChild(String, Int32)
AOTfirstChild()

Retrieves the first child of the tree node.

AOTfirstChildEx()
AOTfirstChildEx(Boolean)
AOTgetExecutableLineCount()

Returns the number of executable lines of code for this node.

AOTgetExecutableLines()

Returns the executable lines of code for this node.

AOTGetModel()
AOTgetProperties()

Returns a string containing the properties of the tree node.

AOTgetProperties(Boolean)
AOTgetProperties(Boolean, Boolean)
AOTgetProperties(Boolean, Boolean, Boolean)
AOTgetPropertiesExt()
AOTgetPropertiesExt(String)
AOTgetProperty(String)
AOTgetSource()

Returns the source code of this node.

AOTIncludeInCompare()
AOTinsert(TreeNode)

Inserts a node among the subnodes of this node.

AOTinsert(TreeNode, TreeNode)
AOTinsert(TreeNode, TreeNode, Boolean)
AOTIsDirty()
AOTIsOld()

Indicates whether this node is from a file found in the old model store.

AOTIsPersisted()

Indicates whether this node has been persisted in the model store.

AOTIsProxyNode()
AOTiterator()

Returns an object which can be used to iterate the child nodes of the tree node.

AOTKernelHelpType()
AOTLayer()

Returns the layer of the tree node.

AOTLayers()

Returns a collection of the layers the tree node is defined in.

AOTLayers(Boolean)
AOTload()

Ensures that the object is loaded.

AOTmakeXref()

Compiles this node and its subtree in the AOT, updating the cross-reference system.

AOTmakeXref(Int32)
AOTmakeXref(Int32, Boolean)
AOTmessageLine(String, Int32)

Writes text to the Application Object Tree (AOT) Message window.

AOTMove(TreeNode)
AOTMove(TreeNode, TreeNode)
AOTname()

Returns the value of the name property of the node.

AOTnewWindow()

Opens a new AOT tree window with the tree node as the root.

AOTnextSibling()

Returns the next node on the same level as the tree node.

AOTObjectNode()

Indicates whether the node is an application object.

AOToverlayBitmapId()

Returns the resource ID of the overlay in the AOT associated with this node.

AOTparent()

Returns the parent node of the tree node.

AOTprevious()

Returns the previous sibling of this tree node.

AOTrefresh()

Refreshes the node with the latest changes to the .aod file.

AOTregenerate()
AOTRename(String)
AOTrestore()

Reloads this node from the disk, if applicable.

AOTrestore(Boolean)
AOTrun()

Compiles this node and its subtree in the Application Object Tree (AOT).

AOTrun(xArgs)
AOTsave()
AOTSetModel(Int32)
AOTsetProperties(String)
AOTsetPropertiesExt(Struct)
AOTsetProperty(String, Object)
AOTsetSource(String)
AOTsetSource(String, Boolean)
AOTshowProperties()

Opens the property sheet (if not already open) and shows the properties for this node.

AOTtoolTip()

Returns the tool tip associated with the tree node.

AOTToString()
AOTtypeStr()

Returns the internal string code for the element type used in XPO files.

AOTUtilFileType()

Retrieves the value of the UtilFileType enumeration type for the TreeNode object. The UtilFileType indicates which kind of file the application object is stored in.

applObjectId()

Returns the application object ID, if applicable.

applObjectLayerMask()

Returns a bitmask that specifies which layers contain this element.

applObjectOldLayerMask()

Returns a bitmask that specifies which layers contain this element in the baseline model store.

Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
equal(XppObjectBase) (Inherited from XppObjectBase)
finalize() (Inherited from XppObjectBase)
findNode(String)

Returns a specified node in the Application Object Tree (AOT).

generateObjectName(String)
GetIntPtr() (Inherited from XppObjectBase)
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getMaximumNodeNameLength(Int32)
getNodeInLayer(UtilEntryLevel)

Retrieves a version of the tree node from a specified layer.

getNodeInLayer(UtilEntryLevel, Boolean)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
hashKey()
IsManagedValid() (Inherited from XppObjectBase)
isNodeReferenceValid(TreeNode)
isValidObjectName(String)

Determines whether the string passed as an argument can be used as a name for a node in the Application Object Tree (AOT).

kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
makeCopy()
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod()

Initializes a new instance of the TreeNode class.

newObjectName()

Returns a string that contains the name of the new element.

newObjectName(String)
notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
rootNode()

Returns the root node of the AOT.

setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
ToString()

Returns a string that represents the current object.

treeNodeExport(String)

Exports this node and its subtree from the Application Object Tree (AOT).

treeNodeExport(String, Int32)
treeNodeName()

Returns the name of the tree node.

treeNodePath()

Returns the unique path to the tree node within the Application Object Tree (AOT).

treeNodeRelease()

Releases the tree node explicitly.

treeNodeType()

Retrieves an instance of a TreeNodeType class that provides reflection information for the tree node.

updateNodePermissions(Boolean)
usageCount() (Inherited from XppObjectBase)
utilElement()

Returns a UtilElements record that is related to the node.

utilIdElement()

Returns a UtilIdElements record that is related to the node.

validateNameCharacters(String)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to