Compartilhar via


XPathNavigator.Compile Method

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

Compiles a string representing an XPath expression and returns an XPathExpression object.

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

Syntax

'Declaration
Public Overridable Function Compile ( _
    xpath As String _
) As XPathExpression
public virtual XPathExpression Compile(
    string xpath
)

Parameters

  • xpath
    Type: System.String
    A string representing an XPath expression.

Return Value

Type: System.Xml.XPath.XPathExpression
An XPathExpression object representing the XPath expression.

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.