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
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
