Api.JetAttachDatabase method
Attaches a database file for use with a database instance. In order to use the database, it will need to be subsequently opened with JetOpenDatabase(JET_SESID, String, String, JET_DBID, OpenDatabaseGrbit).
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'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
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
database
Type: System.StringThe database to attach.
grbit
Type: Microsoft.Isam.Esent.Interop.AttachDatabaseGrbitAttach options.
Return value
Type: Microsoft.Isam.Esent.Interop.JET_wrn
An ESENT warning code.