Api.JetDetachDatabase2 method
Releases a database file that was previously attached to a database session.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetDetachDatabase2 ( _
sesid As JET_SESID, _
database As String, _
grbit As DetachDatabaseGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim database As String
Dim grbit As DetachDatabaseGrbitApi.JetDetachDatabase2(sesid, database, _
grbit)
public static void JetDetachDatabase2(
JET_SESID sesid,
string database,
DetachDatabaseGrbit grbit
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe database session to use.
database
Type: System.StringThe database to detach.
grbit
Type: Microsoft.Isam.Esent.Interop.DetachDatabaseGrbitDetach options.