PrecedingSiblingIterator PrecedingSiblingIterator PrecedingSiblingIterator PrecedingSiblingIterator Struct

定義

根據 System.Xml.XPath 前置的同層級座標軸規則,逐一查看所有前置的同層級節點,並且以文件相反的順序傳回節點。Iterates over all preceding sibling nodes according to the System.Xml.XPath preceding sibling axis rules and returns nodes in reverse document order.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public value class PrecedingSiblingIterator
public struct PrecedingSiblingIterator
type PrecedingSiblingIterator = struct
Public Structure PrecedingSiblingIterator
繼承
PrecedingSiblingIteratorPrecedingSiblingIteratorPrecedingSiblingIteratorPrecedingSiblingIterator

備註

只有在MoveNext方法傳回true時, [導覽器] 的狀態才會變更。The state of the navigator changes only if the MoveNext method has returned true.

屬性

Current Current Current Current

傳回目前的結果巡覽器。Returns the current result navigator.

方法

Create(XPathNavigator, XmlNavigatorFilter) Create(XPathNavigator, XmlNavigatorFilter) Create(XPathNavigator, XmlNavigatorFilter) Create(XPathNavigator, XmlNavigatorFilter)

初始化 PrecedingSiblingIteratorInitializes the PrecedingSiblingIterator.

MoveNext() MoveNext() MoveNext() MoveNext()

將 Iterator 以反向文件順序置於下一個前置同層級節點。Positions the iterator on the next preceding sibling node in the reverse document order.

適用於