Public Function DoesDatabaseExist() As Boolean
Dim instance As NinjaDbPro Dim value As Boolean value = instance.DoesDatabaseExist()
public bool DoesDatabaseExist()
public: bool DoesDatabaseExist();
Public Function DoesDatabaseExist() As Boolean
Dim instance As NinjaDbPro Dim value As Boolean value = instance.DoesDatabaseExist()
public bool DoesDatabaseExist()
public: bool DoesDatabaseExist();
NinjaDbPro db = new NinjaDbPro("MyDatabaseDirectory", "MyDatabaseName"); //Licensed Mode //db.UserName = "John Smith 101224"; //db.LicenseKey = "aousdf832jasf=="; //Set before OpenDatabase. Default storage is IsolatedStorageDatabase. Other options are: //db.Storage = new MemoryDatabase(); //In memory database //db.Storage = new FileDatabase(); //This will be false bool databaseExists = db.DoesDatabaseExist(); db.OpenDatabase(); //This will be true databaseExists = db.DoesDatabaseExist(); db.CloseDatabase();
Dim db As New NinjaDbPro("MyDatabaseDirectory", "MyDatabaseName") 'Licensed Mode 'db.UserName = "John Smith 101224"; 'db.LicenseKey = "aousdf832jasf=="; 'Set before OpenDatabase. Default storage is IsolatedStorageDatabase. Other options are: 'db.Storage = new MemoryDatabase(); //In memory database 'db.Storage = new FileDatabase(); 'This will be false Dim databaseExists As Boolean = db.DoesDatabaseExist() db.OpenDatabase() 'This will be true databaseExists = db.DoesDatabaseExist() db.CloseDatabase()
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