Click or drag to resize
DocumentHelperInsertDocument Method (TreeNode, TreeNode, TreeProvider, Boolean)
Inserts a new document.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static void InsertDocument(
	TreeNode node,
	TreeNode parentNode,
	TreeProvider tree = null,
	bool allowCheckOut = true
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
parentNode
Type: CMS.DocumentEngineTreeNode
Parent node
tree (Optional)
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use
allowCheckOut (Optional)
Type: SystemBoolean
If true, document check out is allowed on the insert action.
See Also