Api.JetOpenDatabase 方法

開啟先前附加 JetAttachDatabase (JET_SESID、String、AttachDatabaseGrbit) 的資料庫,以便與資料庫會話搭配使用。 同一個資料庫可以多次呼叫此函式。

Namespace:Microsoft.Isam.Esent.Interop
裝配: microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

語法

'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
)

參數

傳回值

類型: Microsoft.Isam.Esent.Interop.JET_wrn
ESENT 警告碼。

另請參閱

參考

Api 類別

Api 成員

Microsoft.Isam.Esent.Interop 命名空間