System::Xml::XPath::XPathNavigator::MoveToChild 方法

XPathNavigator::MoveToChild(String, String) method

XPathNavigator 移动到具有指定本地名称和命名空间 URI 的子节点。

virtual bool System::Xml::XPath::XPathNavigator::MoveToChild(String localName, String namespaceURI)
参数类型描述
localNameString要移动到的子节点的本地名称。
namespaceURIString要移动到的子节点的命名空间 URI。

ReturnValue

true if the XPathNavigator is successful moving to the child node; otherwise, false. If false, the position of the XPathNavigator is unchanged.

另见

XPathNavigator::MoveToChild(XPathNodeType) method

XPathNavigator 移动到指定的 XPathNodeType 的子节点。

virtual bool System::Xml::XPath::XPathNavigator::MoveToChild(XPathNodeType type)
参数类型描述
typeXPathNodeType要移动到的子节点的 XPathNodeType

ReturnValue

true if the XPathNavigator is successful moving to the child node; otherwise, false. If false, the position of the XPathNavigator is unchanged.

另见