Api.JetOpenDatabase 方法

打开以前使用 JetAttachDatabase (JET_SESID、String、AttachDatabaseGrbit) 附加的数据库,以便与数据库会话一起使用。 对于同一数据库,可以多次调用此函数。

Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (

语法

'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

返回值

类型: Microsoft.Isam.Esent.Interop.JET_wrn
ESENT 警告代码。

请参阅

参考

Api 类

Api 成员

Microsoft.Isam.Esent.Interop 命名空间