VistaDB 5






Full database file name
Database access mode
Phrase as a base string for encryption key. Encrypts entire database file or null for non encrypted database. Empty string is not valid.
OpenDatabase Method
Instantiates secure/unsecured DDA database object and opens database file
Syntax
'Declaration
 
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
)
function OpenDatabase( 
    fileName: System.String;
    mode: VistaDBDatabaseOpenMode;
    encryptionKeyString: System.String
): IVistaDBDatabase; 
function OpenDatabase( 
   fileName : System.String,
   mode : VistaDBDatabaseOpenMode,
   encryptionKeyString : System.String
) : IVistaDBDatabase;
IVistaDBDatabase* OpenDatabase( 
   System.string* fileName,
   VistaDBDatabaseOpenMode mode,
   System.string* encryptionKeyString
) 
IVistaDBDatabase^ OpenDatabase( 
   System.String^ fileName,
   VistaDBDatabaseOpenMode mode,
   System.String^ encryptionKeyString
) 

Parameters

fileName
Full database file name
mode
Database access mode
encryptionKeyString
Phrase as a base string for encryption key. Encrypts entire database file or null for non encrypted database. Empty string is not valid.

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