System::Xml::XPath::XPathNavigator::SelectDescendants 方法

XPathNavigator::SelectDescendants(String, String, bool) method

选择当前节点的所有具有指定本地名称和命名空间 URI 的后代节点。

virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::SelectDescendants(String name, String namespaceURI, bool matchSelf)
参数类型描述
名称String后代节点的本地名称。
namespaceURIString后代节点的命名空间 URI。
matchSelfbooltrue 表示在选择中包含上下文节点;否则为 false

ReturnValue

一个包含所选节点的 XPathNodeIterator

另见

XPathNavigator::SelectDescendants(XPathNodeType, bool) method

选择当前节点的所有后代节点,这些节点的 XPathNodeType 匹配。

virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::SelectDescendants(XPathNodeType type, bool matchSelf)
参数类型描述
typeXPathNodeType后代节点的 XPathNodeType
matchSelfbooltrue 表示在选择中包含上下文节点;否则为 false

ReturnValue

一个包含所选节点的 XPathNodeIterator

另见