Share via


Extensions Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This class contains the LINQ to XML extension methods that enable you to evaluate XPath expressions.

Inheritance Hierarchy

System.Object
  System.Xml.XPath.Extensions

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class Extensions
public static class Extensions

Methods

  Name Description
Public methodStatic member CreateNavigator(XNode) Creates an XPathNavigator for an XNode.
Public methodStatic member CreateNavigator(XNode, XmlNameTable) Creates an XPathNavigator for an XNode. The XmlNameTable enables more efficient XPath expression processing.
Public methodStatic member XPathEvaluate(XNode, String) Evaluates an XPath expression.
Public methodStatic member XPathEvaluate(XNode, String, IXmlNamespaceResolver) Evaluates an XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver.
Public methodStatic member XPathSelectElement(XNode, String) Selects an XElement using a XPath expression.
Public methodStatic member XPathSelectElement(XNode, String, IXmlNamespaceResolver) Selects an XElement using a XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver.
Public methodStatic member XPathSelectElements(XNode, String) Selects a collection of elements using an XPath expression.
Public methodStatic member XPathSelectElements(XNode, String, IXmlNamespaceResolver) Selects a collection of elements using an XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver.

Top

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference