Méthode Api.TryOpenTable
Essayez d’ouvrir une table.
Namespace:Microsoft.Isam.Esent.Interop
Assemblée: Microsoft.Isam.Esent.Interop (en Microsoft.Isam.Esent.Interop.dll)
Syntaxe
'Declaration
Public Shared Function TryOpenTable ( _
sesid As JET_SESID, _
dbid As JET_DBID, _
tablename As String, _
grbit As OpenTableGrbit, _
<OutAttribute> ByRef tableid As JET_TABLEID _
) As Boolean
'Usage
Dim sesid As JET_SESID
Dim dbid As JET_DBID
Dim tablename As String
Dim grbit As OpenTableGrbit
Dim tableid As JET_TABLEID
Dim returnValue As Boolean
returnValue = Api.TryOpenTable(sesid, _
dbid, tablename, grbit, tableid)
public static bool TryOpenTable(
JET_SESID sesid,
JET_DBID dbid,
string tablename,
OpenTableGrbit grbit,
out JET_TABLEID tableid
)
Paramètres
sesid
Type : Microsoft.Isam.Esent.Interop.JET_SESIDSession à utiliser.
dbid
Type : Microsoft.Isam.Esent.Interop.JET_DBIDBase de données dans laquelle rechercher la table.
tablename
Type : System.StringNom de la table.
grbit
Type : Microsoft.Isam.Esent.Interop.OpenTableGrbitOptions d’ouverture de table.
tableid
Type : Microsoft.Isam.Esent.Interop.JET_TABLEIDRetourne le tableid ouvert.
Valeur retournée
Type : System.Boolean
True si la table a été ouverte, false si la table n’existe pas.