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
)
参数
sesid
类型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的会话。
database
类型: System.String要附加的数据库。
grbit
类型: Microsoft.Isam.Esent.Interop.AttachDatabaseGrbit附加选项。
返回值
类型: Microsoft.Isam.Esent.Interop.JET_wrn
ESENT 警告代码。
另请参阅
参考
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈