DataNode.SelectSingleNode Method

Selects a single node based on the specified XPath expression.

Namespace:  Microsoft.Web.CommandUI
Assembly:  Microsoft.Web.CommandUI (in Microsoft.Web.CommandUI.dll)

Syntax

'Declaration
Public Function SelectSingleNode ( _
    xpath As String _
) As DataNode
'Usage
Dim instance As DataNode
Dim xpath As String
Dim returnValue As DataNode

returnValue = instance.SelectSingleNode(xpath)
public DataNode SelectSingleNode(
    string xpath
)

Parameters

  • xpath
    Type: System.String

    An XPath expression used to select nodes.

Return Value

Type: Microsoft.Web.CommandUI.DataNode
A DataNode that contains the node selected by the XPath expression.

Remarks

Only a limited set of XPath expressions are supported in this method.

See Also

Reference

DataNode Class

DataNode Members

Microsoft.Web.CommandUI Namespace