IXmlNodeSelector.SelectSingleNode method

Applies to Windows and Windows Phone

Applies the specified pattern-matching operation to this node's context and returns the first matching node.

Syntax


IXmlNode SelectSingleNode(
  string xpath
)

Parameters

xpath

Type: System.String [.NET] | Platform::String [C++]

Specifies an XPath expression.

Return value

Type: IXmlNode

The first node that matches the given pattern-matching operation. If no nodes match the expression, the method returns a null value.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

IXmlNodeSelector

 

 

Show:
© 2014 Microsoft. All rights reserved.