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

Note: This API is now obsolete.

Moves the specified document to the new location.

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 MoveDocument(
	TreeNode node,
	int targetParentNodeId,
	TreeProvider tree = null,
	bool copyPermissions = false
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node to move
targetParentNodeId
Type: SystemInt32
Target parent node ID
tree (Optional)
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use
copyPermissions (Optional)
Type: SystemBoolean
Indicates if node permissions should be preserved.
See Also