Share via


Windows8Api.JetCreateIndex4 方法

基于 ESE 数据库中的数据创建索引。

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

语法

'Declaration
Public Shared Sub JetCreateIndex4 ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    indexcreates As JET_INDEXCREATE(), _
    numIndexCreates As Integer _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim indexcreates As JET_INDEXCREATE()
Dim numIndexCreates As IntegerWindows8Api.JetCreateIndex4(sesid, tableid, _
    indexcreates, numIndexCreates)
public static void JetCreateIndex4(
    JET_SESID sesid,
    JET_TABLEID tableid,
    JET_INDEXCREATE[] indexcreates,
    int numIndexCreates
)

parameters

  • indexcreates
    类型:[]

    描述要创建的索引的 对象的数组。

  • numIndexCreates
    类型: System.Int32

    索引说明对象数。

备注

(创建多个索引时,即使用 numIndexCreates 大于 1) 必须在任何事务外部调用此方法,并且必须具有对表的独占访问权限。 “Api.JetCreateTable”返回的JET_TABLEID将具有访问权限,或者可以通过将 DenyRead 传递给 JetOpenTable (JET_SESID、JET_DBID、String、[]、Int32、OpenTableGrbit JET_TABLEID) 来打开表进行独占访问。

另请参阅

参考

Windows8Api 类

Windows8Api 成员

Microsoft.Isam.Esent.Interop.Windows8 命名空间