TreeProviderCopyNode Method (TreeNode, Int32, Boolean, Int32, Int32, Boolean, String) |
Note: This API is now obsolete.
Copies the node to the specified location, optionally with permissions and child nodes. The copy is named according to the parameter and assigned to given owner and group.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax [ObsoleteAttribute("This method is obsolete. Use overload method to pass parent document instance instead of the ID.")]
public virtual TreeNode CopyNode(
TreeNode node,
int targetParentNodeId,
bool includeChildNodes = true,
int newDocumentsOwner = 0,
int newDocumentsGroup = 0,
bool copyPermissions = false,
string newDocumentName = null
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Node to copy - targetParentNodeId
- Type: SystemInt32
Target location - includeChildNodes (Optional)
- Type: SystemBoolean
Copy also the node child nodes - newDocumentsOwner (Optional)
- Type: SystemInt32
Owner of the new documents - newDocumentsGroup (Optional)
- Type: SystemInt32
Group of the new documents - copyPermissions (Optional)
- Type: SystemBoolean
Indicates whether document permissions should be copied. - newDocumentName (Optional)
- Type: SystemString
New document name
Return Value
Type:
TreeNodeSee Also