XmlDocument.SelectSingleNode(String) Metodo

Definizione

Applica l'operazione dei criteri di ricerca specificata al contesto di questo nodo e restituisce il primo nodo corrispondente.

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

Parametri

xpath
String

Platform::String

winrt::hstring

Specifica un'espressione XPath.

Restituisce

Primo nodo che corrisponde all'operazione di corrispondenza dei criteri specificata. Se nessun nodo corrisponde all'espressione, il metodo restituisce un valore Null.

Implementazioni

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)

Commenti

Per un esempio che illustra come usare questo metodo, vedere l'esempio DOM XML (Windows 10).For an example that demonstrates how to use this method, see the XML DOM sample (Windows 10).

Si applica a