Click or drag to resize
DocumentHelperInsertDocument Method (TreeNode, Int32, TreeProvider)

Note: This API is now obsolete.

Inserts a new document.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This method is obsolete. Use overload method to pass parent document instance instead of the ID.")]
public static void InsertDocument(
	TreeNode node,
	int parentNodeId,
	TreeProvider tree = null
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
parentNodeId
Type: SystemInt32
Parent node ID
tree (Optional)
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use
See Also