VistaDB 5






VistaDB.DDA Namespace > IVistaDBDDA Interface : OpenIsolatedDatabase Method
Full database file name
Database access mode. Only VistaDBDatabaseOpenMode.ExclusiveReadWrite and VistaDBDatabaseOpenMode.ExclusiveReadOnly are allowed
Phrase as a base string for encryption key. Encrypts entire database file or null for non encrypted database. Empty string is not valid.
OpenIsolatedDatabase Method
Instantiates secure/unsecured DDA database object and open database file in isolated storage
Syntax
'Declaration
 
Function OpenIsolatedDatabase( _
   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.OpenIsolatedDatabase(fileName, mode, encryptionKeyString)
IVistaDBDatabase OpenIsolatedDatabase( 
   System.string fileName,
   VistaDBDatabaseOpenMode mode,
   System.string encryptionKeyString
)
function OpenIsolatedDatabase( 
    fileName: System.String;
    mode: VistaDBDatabaseOpenMode;
    encryptionKeyString: System.String
): IVistaDBDatabase; 
function OpenIsolatedDatabase( 
   fileName : System.String,
   mode : VistaDBDatabaseOpenMode,
   encryptionKeyString : System.String
) : IVistaDBDatabase;
IVistaDBDatabase* OpenIsolatedDatabase( 
   System.string* fileName,
   VistaDBDatabaseOpenMode mode,
   System.string* encryptionKeyString
) 
IVistaDBDatabase^ OpenIsolatedDatabase( 
   System.String^ fileName,
   VistaDBDatabaseOpenMode mode,
   System.String^ encryptionKeyString
) 

Parameters

fileName
Full database file name
mode
Database access mode. Only VistaDBDatabaseOpenMode.ExclusiveReadWrite and VistaDBDatabaseOpenMode.ExclusiveReadOnly are allowed
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