Api.JetGetCurrentIndex method
Ddetermines the name of the current index of a given cursor. This name is also used to later re-select that index as the current index using JetSetCurrentIndex(JET_SESID, JET_TABLEID, String). It can also be used to discover the properties of that index using JetGetTableIndexInfo.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetGetCurrentIndex ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
<OutAttribute> ByRef indexName As String, _
maxNameLength As Integer _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim indexName As String
Dim maxNameLength As IntegerApi.JetGetCurrentIndex(sesid, tableid, _
indexName, maxNameLength)
public static void JetGetCurrentIndex(
JET_SESID sesid,
JET_TABLEID tableid,
out string indexName,
int maxNameLength
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe cursor to get the index name for.
indexName
Type: System.StringReturns the name of the index.
maxNameLength
Type: System.Int32The maximum length of the index name. Index names are no more than NameMost characters.