Api.JetCreateIndex method
Creates an index over data in an ESE database. An index can be used to locate specific data quickly.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetCreateIndex ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
indexName As String, _
grbit As CreateIndexGrbit, _
keyDescription As String, _
keyDescriptionLength As Integer, _
density As Integer _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim indexName As String
Dim grbit As CreateIndexGrbit
Dim keyDescription As String
Dim keyDescriptionLength As Integer
Dim density As IntegerApi.JetCreateIndex(sesid, tableid, _
indexName, grbit, keyDescription, _
keyDescriptionLength, density)
public static void JetCreateIndex(
JET_SESID sesid,
JET_TABLEID tableid,
string indexName,
CreateIndexGrbit grbit,
string keyDescription,
int keyDescriptionLength,
int density
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe table to create the index on.
indexName
Type: System.StringPointer to a null-terminated string that specifies the name of the index to create.
grbit
Type: Microsoft.Isam.Esent.Interop.CreateIndexGrbitIndex creation options.
keyDescription
Type: System.StringPointer to a double null-terminated string of null-delimited tokens.
keyDescriptionLength
Type: System.Int32The length, in characters, of szKey including the two terminating nulls.
density
Type: System.Int32Initial B+ tree density.
See also
Reference
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for