Click or drag to resize
TreeNodeInsertAsLink Method (Int32, Boolean)

Note: This API is now obsolete.

Inserts current node under specified parent node as a document link.

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 virtual void InsertAsLink(
	int parentNodeId,
	bool useDocumentHelper = true
)

Parameters

parentNodeId
Type: SystemInt32
Parent node ID
useDocumentHelper (Optional)
Type: SystemBoolean
Use document helper
Remarks
Use this method only for creating a new node linked to existing document (the node must be existing document). The standard path properties of the node are not used during the insert operation and they are overwritten with new values.
See Also