XmlNotation.CloneNode(Boolean) 方法
定义
创建此节点的副本。Creates a duplicate of this node. 表示法节点无法克隆。Notation nodes cannot be cloned. 对 XmlNotation 对象调用此方法将引发异常。Calling this method on an XmlNotation object throws an exception.
public:
override System::Xml::XmlNode ^ CloneNode(bool deep);
public override System.Xml.XmlNode CloneNode (bool deep);
override this.CloneNode : bool -> System.Xml.XmlNode
Public Overrides Function CloneNode (deep As Boolean) As XmlNode
参数
- deep
- Boolean
若要递归地克隆指定节点下的子树,则为 true;若仅克隆节点本身,则为 false。true to recursively clone the subtree under the specified node; false to clone only the node itself.
返回
从中调用方法的节点的 XmlNode 副本。A XmlNode copy of the node from which the method is called.
例外
表示法节点无法克隆。Notation nodes cannot be cloned. 对 XmlNotation 对象调用此方法将引发异常。Calling this method on an XmlNotation object throws an exception.