Creates and attaches a database file with a maximum database size specified.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetCreateDatabase2 ( _
sesid As JET_SESID, _
database As String, _
maxPages As Integer, _
<OutAttribute> ByRef dbid As JET_DBID, _
grbit As CreateDatabaseGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim database As String
Dim maxPages As Integer
Dim dbid As JET_DBID
Dim grbit As CreateDatabaseGrbitApi.JetCreateDatabase2(sesid, database, _
maxPages, dbid, grbit)
public static void JetCreateDatabase2(
JET_SESID sesid,
string database,
int maxPages,
out JET_DBID dbid,
CreateDatabaseGrbit grbit
)
Parameters
-
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
-
database
Type: System.StringThe path to the database file to create.
-
maxPages
Type: System.Int32The maximum size, in database pages, of the database. Passing 0 means there is no enforced maximum.
-
dbid
Type: Microsoft.Isam.Esent.Interop.JET_DBIDReturns the dbid of the new database.
-
grbit
Type: Microsoft.Isam.Esent.Interop.CreateDatabaseGrbitDatabase creation options.
See also
Reference
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
