TreeNodeType.isConsumingMemory 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.
Indicates whether instances of this node type are consuming memory that needs to be manually released.
public:
virtual bool isConsumingMemory();
public virtual bool isConsumingMemory ();
abstract member isConsumingMemory : unit -> bool
override this.isConsumingMemory : unit -> bool
Public Overridable Function isConsumingMemory () As Boolean
Returns
true if tree nodes of this type consumes memory; otherwise, false.
Remarks
After working with TreeNode instances of this type it is important to call the TreeNode.TreeNodeRelease method to release any consumed memory. Failure to do this will result in out-of-memory exceptions. Do not call the TreeNode.TreeNodeRelease method before all instances of TreeNode classes in the composition hierarchy has been garbage collected. For example, do not call the TreeNode.TreeNodeRelease() method on MyClass, if you still have a TreeNode instance of MyClass.myMethod.