CustomXMLNode.SelectNodes(String) 方法

定义

选择与 XPath 表达式匹配的节点的集合。 此方法与 方法的不同之处在于 SelectNodes(String) ,将从“expression”节点作为上下文节点开始计算 XPath 表达式。

public:
 Microsoft::Office::Core::CustomXMLNodes ^ SelectNodes(System::String ^ XPath);
public Microsoft.Office.Core.CustomXMLNodes SelectNodes (string XPath);
abstract member SelectNodes : string -> Microsoft.Office.Core.CustomXMLNodes
Public Function SelectNodes (XPath As String) As CustomXMLNodes

参数

XPath
String

包含一个 XPath 表达式。

返回

CustomXMLNodes

适用于