VistaDB 6
VistaDB.DDA Namespace / IVistaDBDDA Interface / OpenDatabase Method / OpenDatabase(String,VistaDBDatabaseOpenMode,Boolean,String) Method
Full database file name
Database access mode
If using a SingleProcess- or MultiProcess- mode should the database be protected against improper overlap between processes (true, the default for the other overload) or disable this protection (false). This setting is ignored for SharedReadOnly and Exclusive- modes.
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.


In This Topic
    OpenDatabase(String,VistaDBDatabaseOpenMode,Boolean,String) Method
    In This Topic
    Instantiates secure/unsecured DDA database object and opens database file
    Syntax
    'Declaration
     
    
    Overloads Function OpenDatabase( _
       ByVal fileName As System.String, _
       ByVal mode As VistaDBDatabaseOpenMode, _
       ByVal processProtection As System.Boolean, _
       ByVal encryptionKeyString As System.String _
    ) As IVistaDBDatabase
    'Usage
     
    
    Dim instance As IVistaDBDDA
    Dim fileName As System.String
    Dim mode As VistaDBDatabaseOpenMode
    Dim processProtection As System.Boolean
    Dim encryptionKeyString As System.String
    Dim value As IVistaDBDatabase
     
    value = instance.OpenDatabase(fileName, mode, processProtection, encryptionKeyString)
    IVistaDBDatabase OpenDatabase( 
       System.string fileName,
       VistaDBDatabaseOpenMode mode,
       System.bool processProtection,
       System.string encryptionKeyString
    )

    Parameters

    fileName
    Full database file name
    mode
    Database access mode
    processProtection
    If using a SingleProcess- or MultiProcess- mode should the database be protected against improper overlap between processes (true, the default for the other overload) or disable this protection (false). This setting is ignored for SharedReadOnly and Exclusive- modes.
    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.

    Return Value

    IVistaDBDatabase instance
    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