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

Note: This API is now obsolete.

Inserts a new linked 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 InsertDocumentAsLink(
	TreeNode node,
	int parentNodeId,
	TreeProvider tree = null,
	bool includeChildNodes = false,
	bool copyPermissions = false
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
parentNodeId
Type: SystemInt32
Parent node ID
tree (Optional)
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use
includeChildNodes (Optional)
Type: SystemBoolean
Link also the node child nodes.
copyPermissions (Optional)
Type: SystemBoolean
Indicates whether document permissions should be copied.
See Also