Click or drag to resize
DocumentHelperInsertDocumentAsLink Method
Inserts a new linked document.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static void InsertDocumentAsLink(
	TreeNode node,
	TreeNode parent,
	TreeProvider tree = null,
	bool includeChildNodes = false,
	bool copyPermissions = false,
	int newDocumentsOwner = 0
)

Parameters

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