Api.JetCreateInstance2 method
Allocate a new instance of the database engine for use in a single process, with a display name specified.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetCreateInstance2 ( _
<OutAttribute> ByRef instance As JET_INSTANCE, _
name As String, _
displayName As String, _
grbit As CreateInstanceGrbit _
)
'Usage
Dim instance As JET_INSTANCE
Dim name As String
Dim displayName As String
Dim grbit As CreateInstanceGrbitApi.JetCreateInstance2(instance, _
name, displayName, grbit)
public static void JetCreateInstance2(
out JET_INSTANCE instance,
string name,
string displayName,
CreateInstanceGrbit grbit
)
Parameters
instance
Type: Microsoft.Isam.Esent.Interop.JET_INSTANCEReturns the newly create instance.
name
Type: System.StringSpecifies a unique string identifier for the instance to be created. This string must be unique within a given process hosting the database engine.
displayName
Type: System.StringA display name for the instance to be created. This will be used in eventlog entries.
grbit
Type: Microsoft.Isam.Esent.Interop.CreateInstanceGrbitCreation options.