Api.JetCreateIndex 方法

在 ESE 資料庫中建立資料的索引。 索引可用來快速找出特定資料。

Namespace:Microsoft.Isam.Esent.Interop
裝配: microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

語法

'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
)

參數

  • IndexName
    類型: System.String

    指定要建立之索引名稱之 Null 終止字串的指標。

  • keyDescription
    類型: System.String

    以 Null 分隔之標記之雙 Null 終止字串的指標。

  • keyDescriptionLength
    類型: System.Int32

    szKey 的長度,以字元為單位,包括兩個終止 Null。

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

    初始 B+ 樹狀結構密度。

另請參閱

參考

Api 類別

Api 成員

Microsoft.Isam.Esent.Interop 命名空間