XmlQueryRuntime.FindIndex(XPathNavigator, Int32, XmlILIndex) 方法
定义
如果已对指定文档创建了具有指定 ID 的索引,则返回该索引,并返回 true。Returns the index with the specified ID if it has already been created over the specified document, and returns true. 否则,创建一个新的空索引并返回 false。Otherwise, creates a new, empty index and returns 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
上下文文档。The context document.
- indexId
- Int32
要查找的索引 ID。The index ID to look for.
- index
- XmlILIndex
返回的索引。The returned index.
返回
XmlILIndex 类的实例。An instance of the XmlILIndex class.