System::Xml::XPath::XPathNavigator::MoveToNext 方法

XPathNavigator::MoveToNext() method

当在派生类中被重写时,将 XPathNavigator 移动到当前节点的下一个兄弟节点。

virtual bool System::Xml::XPath::XPathNavigator::MoveToNext()=0

ReturnValue

true if the XPathNavigator is successful moving to the next sibling node; otherwise false if there are no more siblings or if the XPathNavigator is currently positioned on an attribute node. If false, the position of the XPathNavigator is unchanged.

另见

XPathNavigator::MoveToNext(String, String) method

XPathNavigator 移动到具有指定本地名称和命名空间 URI 的下一个兄弟节点。

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

ReturnValue

true if the XPathNavigator is successful moving to the next sibling node; false if there are no more siblings, or if the XPathNavigator is currently positioned on an attribute node. If false, the position of the XPathNavigator is unchanged.

另见

XPathNavigator::MoveToNext(XPathNodeType) method

XPathNavigator 移动到当前节点的下一个兄弟节点,该节点匹配指定的 XPathNodeType

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

ReturnValue

true if the XPathNavigator is successful moving to the next sibling node; otherwise, false if there are no more siblings or if the XPathNavigator is currently positioned on an attribute node. If false, the position of the XPathNavigator is unchanged.

另见