Api.JetAttachDatabase 方法

附加用于数据库实例的数据库文件。 若要使用数据库,随后需要使用 JetOpenDatabase (JET_SESID、String、String、JET_DBID、OpenDatabaseGrbit) 打开数据库。

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

语法

'Declaration
Public Shared Function JetAttachDatabase ( _
    sesid As JET_SESID, _
    database As String, _
    grbit As AttachDatabaseGrbit _
) As JET_wrn
'Usage
Dim sesid As JET_SESID
Dim database As String
Dim grbit As AttachDatabaseGrbit
Dim returnValue As JET_wrn

returnValue = Api.JetAttachDatabase(sesid, _
    database, grbit)
public static JET_wrn JetAttachDatabase(
    JET_SESID sesid,
    string database,
    AttachDatabaseGrbit grbit
)

参数

返回值

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

另请参阅

参考

Api 类

Api 成员

Microsoft.Isam.Esent.Interop 命名空间