XmlDocumentXPathExtensions.CreateNavigator 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateNavigator(XmlDocument) |
建立一個新的 XPath 導航器物件來導航指定文件。 |
| CreateNavigator(XmlNode) |
建立一個 XPath 導航器來導航指定節點。 |
| CreateNavigator(XmlDocument, XmlNode) |
建立一個 XPath 導航器物件,用於導航指定節點上指定的文件。 |
CreateNavigator(XmlDocument)
建立一個新的 XPath 導航器物件來導航指定文件。
public:
[System::Runtime::CompilerServices::Extension]
static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlDocument ^ document);
public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.XmlDocument document);
static member CreateNavigator : System.Xml.XmlDocument -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (document As XmlDocument) As XPathNavigator
參數
- document
- XmlDocument
XPath 導航器所依據的文件。
傳回
一個XPath導航器物件。
適用於
CreateNavigator(XmlNode)
建立一個 XPath 導航器來導航指定節點。
public:
[System::Runtime::CompilerServices::Extension]
static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlNode ^ node);
public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.XmlNode node);
static member CreateNavigator : System.Xml.XmlNode -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (node As XmlNode) As XPathNavigator
參數
- node
- XmlNode
導航員最初所在的節點。
傳回
一個用於導航節點的 XPath 導航器物件。 XPath 導航器位於呼叫方法的節點上,而非文件根節點。
適用於
CreateNavigator(XmlDocument, XmlNode)
建立一個 XPath 導航器物件,用於導航指定節點上指定的文件。
public:
[System::Runtime::CompilerServices::Extension]
static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlDocument ^ document, System::Xml::XmlNode ^ node);
public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.XmlDocument document, System.Xml.XmlNode node);
static member CreateNavigator : System.Xml.XmlDocument * System.Xml.XmlNode -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (document As XmlDocument, node As XmlNode) As XPathNavigator
參數
- document
- XmlDocument
XPath 導航器所依據的文件。
- node
- XmlNode
導航員最初所在的節點。
傳回
一個XPath導航器物件。