XmlDocumentXPathExtensions.SelectSingleNode メソッド

定義

オーバーロード

名前 説明
SelectSingleNode(XmlNode, String)

XPath 式に一致する最初のノードを選択します。

SelectSingleNode(XmlNode, String, XmlNamespaceManager)

XPath 式に一致する最初のノードを選択します。 XPath 式で見つかったプレフィックスはすべて、指定された名前空間マネージャーを使用して解決されます。

SelectSingleNode(XmlNode, String)

ソース:
XmlDocumentXPathExtensions.cs

XPath 式に一致する最初のノードを選択します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XmlNode ^ SelectSingleNode(System::Xml::XmlNode ^ node, System::String ^ xpath);
public static System.Xml.XmlNode SelectSingleNode(this System.Xml.XmlNode node, string xpath);
static member SelectSingleNode : System.Xml.XmlNode * string -> System.Xml.XmlNode
<Extension()>
Public Function SelectSingleNode (node As XmlNode, xpath As String) As XmlNode

パラメーター

node
XmlNode

ナビゲーターが最初に配置されるノード。

xpath
String

一致する XPath 式。

返品

XPath クエリに一致する最初のノード。一致するノードが見つからない場合は null

適用対象

SelectSingleNode(XmlNode, String, XmlNamespaceManager)

ソース:
XmlDocumentXPathExtensions.cs

XPath 式に一致する最初のノードを選択します。 XPath 式で見つかったプレフィックスはすべて、指定された名前空間マネージャーを使用して解決されます。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XmlNode ^ SelectSingleNode(System::Xml::XmlNode ^ node, System::String ^ xpath, System::Xml::XmlNamespaceManager ^ nsmgr);
public static System.Xml.XmlNode SelectSingleNode(this System.Xml.XmlNode node, string xpath, System.Xml.XmlNamespaceManager nsmgr);
static member SelectSingleNode : System.Xml.XmlNode * string * System.Xml.XmlNamespaceManager -> System.Xml.XmlNode
<Extension()>
Public Function SelectSingleNode (node As XmlNode, xpath As String, nsmgr As XmlNamespaceManager) As XmlNode

パラメーター

node
XmlNode

ナビゲーターが最初に配置されるノード。

xpath
String

一致する XPath 式。

nsmgr
XmlNamespaceManager

XPath 式プレフィックス名前空間を解決するための名前空間マネージャー。

返品

XPath クエリに一致する最初のノード。一致するノードが見つからない場合は null

適用対象