Mono Class Library: System.Xml.XPath.XPathNavigator Overview | Members

System.Xml.XPath.XPathNavigator.SelectAncestors Method

Selects the ancestor nodes and optionally the current node itself that has specific node type.

public virtual XPathNodeIterator SelectAncestors (XPathNodeType type, bool matchSelf)

Parameters

type
An System.Xml.XPath.XPathNodeType value that indicates the filtered type of the node query.
matchSelf
Indicates if the result contains the current node itself or not.

Returns

The System.Xml.XPath.XPathNodeIterator instance that holds all the resulting nodes.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0