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
sesid
Tipo: Microsoft.Isam.Esent.Interop.JET_SESIDSessione da utilizzare.
tableid
Tipo: Microsoft.Isam.Esent.Interop.JET_TABLEIDTabella in cui creare l'indice.
indexcreates
Tipo: []Matrice di oggetti che descrivono gli indici da creare.
numIndexCreates
Tipo: System.Int32Numero 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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: nel corso del 2024 verranno dismessi i problemi di GitHub come meccanismo di feedback per il contenuto e verranno sostituiti con un nuovo sistema di feedback. Per altre informazioni, vedere:Invia e visualizza il feedback per