Metodo Api.JetCreateIndex2

Crea indici sui dati in un database ESE.

Spazio dei nomi:Microsoft.Isam.Esent.Interop
Assemblea: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

Sintassi

'Declaration
Public Shared Sub JetCreateIndex2 ( _
    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 IntegerApi.JetCreateIndex2(sesid, tableid, _
    indexcreates, numIndexCreates)
public static void JetCreateIndex2(
    JET_SESID sesid,
    JET_TABLEID tableid,
    JET_INDEXCREATE[] indexcreates,
    int numIndexCreates
)

Parametri

  • indexcreates
    Tipo: []

    Matrice di oggetti che descrivono gli indici da creare.

  • numIndexCreates
    Tipo: System.Int32

    Numero di oggetti di descrizione dell'indice.

Commenti

Quando si creano più indici(ad esempio con numIndexCreates maggiore di 1) questo metodo DEVE essere chiamato all'esterno di qualsiasi transazione e con accesso esclusivo alla tabella. Il JET_TABLEID restituito da "JetCreateTable" avrà accesso eslusivo oppure la tabella può essere aperta per l'accesso esclusivo passando DenyRead a JetOpenTable(JET_SESID, JET_DBID, String, [], Int32, OpenTableGrbit, JET_TABLEID).

Vedi anche

Riferimento

Classe Api

Membri dell'API

Spazio dei nomi Microsoft.Isam.Esent.Interop