XmlDocument.SelectSingleNode(String) Méthode

Définition

Applique l’opération de correspondance spécifiée au contexte de ce nœud et retourne le premier nœud correspondant.

public:
 virtual IXmlNode ^ SelectSingleNode(Platform::String ^ xpath) = SelectSingleNode;
IXmlNode SelectSingleNode(winrt::hstring const& xpath);
public IXmlNode SelectSingleNode(string xpath);
function selectSingleNode(xpath)
Public Function SelectSingleNode (xpath As String) As IXmlNode

Paramètres

xpath
String

Platform::String

winrt::hstring

Spécifie une expression XPath.

Retours

Premier nœud qui correspond à l’opération de correspondance de modèle donnée. Si aucun nœud ne correspond à l’expression, la méthode retourne une valeur null.

Implémente

M:Windows.Data.Xml.Dom.IXmlNodeSelector.SelectSingleNode(System.String) M:Windows.Data.Xml.Dom.IXmlNodeSelector.SelectSingleNode(Platform::String) M:Windows.Data.Xml.Dom.IXmlNodeSelector.SelectSingleNode(winrt::hstring)

Remarques

Pour obtenir un exemple qui montre comment utiliser cette méthode, consultez l’exemple DOM XML (Windows 10).

S’applique à