VistaDB 6
VistaDB.DDA Namespace / IVistaDBDDA Interface / OpenDatabase Method / OpenDatabase(String,VistaDBDatabaseOpenMode,String) Method
Full database file name
Database access mode
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,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 encryptionKeyString As System.String _
    ) As IVistaDBDatabase
    'Usage
     
    
    Dim instance As IVistaDBDDA
    Dim fileName As System.String
    Dim mode As VistaDBDatabaseOpenMode
    Dim encryptionKeyString As System.String
    Dim value As IVistaDBDatabase
     
    value = instance.OpenDatabase(fileName, mode, encryptionKeyString)
    IVistaDBDatabase OpenDatabase( 
       System.string fileName,
       VistaDBDatabaseOpenMode mode,
       System.string encryptionKeyString
    )

    Parameters

    fileName
    Full database file name
    mode
    Database access mode
    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