Edit

Share via


Api.JetCreateDatabase2 method

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

  • database
    Type: System.String

    The path to the database file to create.

  • maxPages
    Type: System.Int32

    The maximum size, in database pages, of the database. Passing 0 means there is no enforced maximum.

See also

Reference

Api class

Api members

Microsoft.Isam.Esent.Interop namespace