CloneNode Method (Boolean)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Creates a duplicate of the node.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public HtmlNode CloneNode(
	bool deep
)
Visual Basic
Public Function CloneNode ( _
	deep As Boolean _
) As HtmlNode
Visual C++
public:
HtmlNode^ CloneNode(
	bool deep
)

Parameters

deep
Type: System..::..Boolean
true to recursively clone the subtree under the specified node; false to clone only the node itself.

Return Value

The cloned node.

See Also