XmlNavigatorFilter.MoveToFollowing(XPathNavigator, XPathNavigator) 方法
定义
将导航器重定位到下一个匹配的内容节点或特性,同时跳过已筛除的节点。Repositions the navigator to the following matching content node or attribute and skips over filtered nodes. 如果不存在任何匹配节点,则导航器不移动,方法返回 False。If there are no matching nodes, the navigator does not move and the method returns false.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
abstract bool MoveToFollowing(System::Xml::XPath::XPathNavigator ^ navigator, System::Xml::XPath::XPathNavigator ^ navigatorEnd);
public abstract bool MoveToFollowing (System.Xml.XPath.XPathNavigator navigator, System.Xml.XPath.XPathNavigator navigatorEnd);
abstract member MoveToFollowing : System.Xml.XPath.XPathNavigator * System.Xml.XPath.XPathNavigator -> bool
Public MustOverride Function MoveToFollowing (navigator As XPathNavigator, navigatorEnd As XPathNavigator) As Boolean
参数
- navigator
- XPathNavigator
一个 XPathNavigator 类的实例,该实例标识导航可在其中移动的范围开始处。An instance of the XPathNavigator class that identifies the beginning of the range over which navigation can move.
- navigatorEnd
- XPathNavigator
一个 XPathNavigator 类的实例,该实例标识导航可在其中移动的范围结尾处。An instance of the XPathNavigator class that identifies the end of the range over which navigation can move.
返回
如果导航器重定位到具有匹配名称的下一个元素,则为 true;否则为 false。true if the navigator is repositioned on the next element with a matching name, otherwise, false.
注解
这是一个抽象类,而用于重定位导航器的筛选器(如元素名称)不由此类定义,而是由派生自此类的类定义。This is an abstract class and the filter, such as an element name, used to reposition the navigator is not defined by this class but by the class that derives from this class.