CustomXMLNode.SelectSingleNode(String) 方法

定义

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

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

参数

XPath
String

包含一个 XPath 表达式。

返回

CustomXMLNode

适用于