Api.JetOpenDatabase method
Opens a database previously attached with JetAttachDatabase(JET_SESID, String, AttachDatabaseGrbit), for use with a database session. This function can be called multiple times for the same database.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Function JetOpenDatabase ( _
sesid As JET_SESID, _
database As String, _
connect As String, _
<OutAttribute> ByRef dbid As JET_DBID, _
grbit As OpenDatabaseGrbit _
) As JET_wrn
'Usage
Dim sesid As JET_SESID
Dim database As String
Dim connect As String
Dim dbid As JET_DBID
Dim grbit As OpenDatabaseGrbit
Dim returnValue As JET_wrn
returnValue = Api.JetOpenDatabase(sesid, _
database, connect, dbid, grbit)
public static JET_wrn JetOpenDatabase(
JET_SESID sesid,
string database,
string connect,
out JET_DBID dbid,
OpenDatabaseGrbit grbit
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session that is opening the database.
database
Type: System.StringThe database to open.
connect
Type: System.StringReserved for future use.
dbid
Type: Microsoft.Isam.Esent.Interop.JET_DBIDReturns the dbid of the attached database.
grbit
Type: Microsoft.Isam.Esent.Interop.OpenDatabaseGrbitOpen database options.
Return value
Type: Microsoft.Isam.Esent.Interop.JET_wrn
An ESENT warning code.
See also
Reference
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for