VistaDB 6
VistaDB.DDA Namespace / IVistaDBDDA Interface / CreateInMemoryDatabase Method / CreateInMemoryDatabase(String,Int32,Boolean) Method
Password or phrase to hash for encryption key, or null (Nothing in Visual Basic) for no encryption. An empty string is NOT valid and will result in an error.
Locale id to use for culture info assigned to the database. If 0 is passed default locale id is used.
Whether database character data is to be case sensitive.


In This Topic
    CreateInMemoryDatabase(String,Int32,Boolean) Method
    In This Topic
    Creates temporary memory backed database for use during a single session (exclusive mode only).
    Syntax
    'Declaration
     
    
    Overloads Function CreateInMemoryDatabase( _
       ByVal encryptionKeyString As System.String, _
       ByVal LCID As System.Integer, _
       ByVal caseSensitive As System.Boolean _
    ) As IVistaDBDatabase
    'Usage
     
    
    Dim instance As IVistaDBDDA
    Dim encryptionKeyString As System.String
    Dim LCID As System.Integer
    Dim caseSensitive As System.Boolean
    Dim value As IVistaDBDatabase
     
    value = instance.CreateInMemoryDatabase(encryptionKeyString, LCID, caseSensitive)
    IVistaDBDatabase CreateInMemoryDatabase( 
       System.string encryptionKeyString,
       System.int LCID,
       System.bool caseSensitive
    )

    Parameters

    encryptionKeyString
    Password or phrase to hash for encryption key, or null (Nothing in Visual Basic) for no encryption. An empty string is NOT valid and will result in an error.
    LCID
    Locale id to use for culture info assigned to the database. If 0 is passed default locale id is used.
    caseSensitive
    Whether database character data is to be case sensitive.

    Return Value

    IVistaDBDatabase object instance
    Remarks

    This database is deleted when the application is closed or when the application disposes of the database connection. The database is a virtual memory backed temporary file located in the users temporary directory path.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also