XmlQueryRuntime.FindIndex(XPathNavigator, Int32, XmlILIndex) 方法

定義

若索引已在指定文件上建立,則回傳該 ID 索引,並回傳 true。 否則,會建立一個新的空索引並返回 false

public:
 bool FindIndex(System::Xml::XPath::XPathNavigator ^ context, int indexId, [Runtime::InteropServices::Out] System::Xml::Xsl::Runtime::XmlILIndex ^ % index);
public bool FindIndex(System.Xml.XPath.XPathNavigator context, int indexId, out System.Xml.Xsl.Runtime.XmlILIndex index);
member this.FindIndex : System.Xml.XPath.XPathNavigator * int * XmlILIndex -> bool
Public Function FindIndex (context As XPathNavigator, indexId As Integer, ByRef index As XmlILIndex) As Boolean

參數

context
XPathNavigator

情境文件。

indexId
Int32

要找的索引ID。

index
XmlILIndex

回傳的索引。

傳回

XmlILIndex 類別的執行個體。

適用於