Compartir a través de


TreeNode.treeNodeRelease Method

Definition

Releases the tree node explicitly.

public:
 virtual void treeNodeRelease();
public virtual void treeNodeRelease ();
abstract member treeNodeRelease : unit -> unit
override this.treeNodeRelease : unit -> unit
Public Overridable Sub treeNodeRelease ()

Remarks

Usually you do not have to explicitly unload objects, because the garbage collector will do it automatically. However, because tree nodes are ordinarily linked to the AOT, they are not garbage-collected. If you run this method on many tree nodes in the same execution, it can be demanding on resources. You should unload the tree nodes as you go along to give the garbage collector a chance to remove them. Make sure to remove all references to the tree node and its subnodes before you call this method. Use the TreeNode.TreeNodeType().isConsumingMemory method to determine if you need to call this method.

Applies to