System::Xml::XPath::XPathNavigator::ReplaceSelf 方法

XPathNavigator::ReplaceSelf(SharedPtr<XmlReader>) method

用指定的 XmlReader 对象的内容替换当前节点。

virtual void System::Xml::XPath::XPathNavigator::ReplaceSelf(SharedPtr<XmlReader> newNode)
参数类型描述
newNodeSharedPtr<XmlReader>一个定位在新节点 XML 数据上的 XmlReader 对象。

另见

XPathNavigator::ReplaceSelf(SharedPtr<XPathNavigator>) method

用指定的 XPathNavigator 对象的内容替换当前节点。

virtual void System::Xml::XPath::XPathNavigator::ReplaceSelf(SharedPtr<XPathNavigator> newNode)
参数类型描述
newNodeSharedPtr<XPathNavigator>一个定位在新节点上的 XPathNavigator 对象。

另见

XPathNavigator::ReplaceSelf(String) method

使用指定字符串的内容替换当前节点。

virtual void System::Xml::XPath::XPathNavigator::ReplaceSelf(String newNode)
参数类型描述
newNodeString新节点的 XML 数据字符串。

另见