Api.TryOpenTable method
Try to open a table.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'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
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
dbid
Type: Microsoft.Isam.Esent.Interop.JET_DBIDThe database to look for the table in.
tablename
Type: System.StringThe name of the table.
grbit
Type: Microsoft.Isam.Esent.Interop.OpenTableGrbitTable open options.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDReturns the opened tableid.
Return value
Type: System.Boolean
True if the table was opened, false if the table doesn't exist.