Click or drag to resize
TreeNodeNewNodeType Method (String, IDataContainer, TreeProvider)
Creates new instance of given class which must inherit specified node type and fill it with given data.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
public static NodeType New<NodeType>(
	string className,
	IDataContainer data,
	TreeProvider treeProvider = null
)
where NodeType : new(), TreeNode

Parameters

className
Type: SystemString
Class name in format application.class
data
Type: CMS.BaseIDataContainer
Data container containing both tree node and coupled data
treeProvider (Optional)
Type: CMS.DocumentEngineTreeProvider
Tree provider used to access data

Type Parameters

NodeType

Return Value

Type: NodeType
See Also