Share via


Api.JetCreateIndex 方法

基于 ESE 数据库中的数据创建索引。 索引可用于快速查找特定数据。

Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (

语法

'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

  • indexName
    类型: System.String

    指向以 null 结尾的字符串的指针,该字符串指定要创建的索引的名称。

  • keyDescription
    类型: System.String

    指向以 null 分隔的标记的双 null 终止字符串的指针。

  • keyDescriptionLength
    类型: System.Int32

    szKey 的长度(以字符为单位),包括两个终止 null。

  • 密度 (density)
    类型: System.Int32

    初始 B+ 树密度。

另请参阅

参考

Api 类

Api 成员

Microsoft.Isam.Esent.Interop 命名空间