XmlAttribute.CloneNode(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clones a new node.
public:
virtual IXmlNode ^ CloneNode(bool deep) = CloneNode;
IXmlNode CloneNode(bool const& deep);
public IXmlNode CloneNode(bool deep);
function cloneNode(deep)
Public Function CloneNode (deep As Boolean) As IXmlNode
Parameters
- deep
-
Boolean
bool
A flag that indicates whether to recursively clone all nodes that are descendants of this node. If true, this method creates a clone of the complete tree below this node. If false, this method clones this node and its attributes only.
Returns
The newly created clone node.
Implements
Remarks
If you want the cloned attribute to include the value of the attribute, you must use deep clone; otherwise only the attribute name is cloned.