Aracılığıyla paylaş


XmlDocument.ImportNode(IXmlNode, Boolean) Method

Definition

Imports a node from another document to this document.

public:
 virtual IXmlNode ^ ImportNode(IXmlNode ^ node, bool deep) = ImportNode;
IXmlNode ImportNode(IXmlNode const& node, bool const& deep);
public IXmlNode ImportNode(IXmlNode node, bool deep);
function importNode(node, deep)
Public Function ImportNode (node As IXmlNode, deep As Boolean) As IXmlNode

Parameters

node
IXmlNode

The object to be cloned.

deep
Boolean

bool

If true, any children of node will be cloned as well. If false, no children of the node will be cloned.

Returns

The imported node.

Remarks

The returned node has no parent (the is null). The source node is not altered or removed from the original document; this method creates a new copy of the source node.

Applies to