XDocumentExtensions.ToXPathNavigable(XNode) 方法

定义

返回一个访问器,该访问器可用于导航和编辑指定的 XNodeReturns an accessor that allows you to navigate and edit the specified XNode.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XPath::IXPathNavigable ^ ToXPathNavigable(System::Xml::Linq::XNode ^ node);
public static System.Xml.XPath.IXPathNavigable ToXPathNavigable (this System.Xml.Linq.XNode node);
static member ToXPathNavigable : System.Xml.Linq.XNode -> System.Xml.XPath.IXPathNavigable
<Extension()>
Public Function ToXPathNavigable (node As XNode) As IXPathNavigable

参数

node
XNode

要导航的 XML 节点。The XML node to navigate.

返回

一个接口,提供 XPathNavigator 类的访问器。An interface that provides an accessor to the XPathNavigator class.

适用于