Ninja Database Pro
DatabaseFileVersion Property
Example 



KellermanSoftware.NinjaDatabasePro Namespace > NinjaDbPro Class : DatabaseFileVersion Property
After the database has been opened, this is the version of the database file
Syntax
Public ReadOnly Property DatabaseFileVersion As Decimal
Dim instance As NinjaDbPro
Dim value As Decimal
 
value = instance.DatabaseFileVersion
public decimal DatabaseFileVersion {get;}
public:
property decimal DatabaseFileVersion {
   decimal get();
}
Example
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();  
             
            db.OpenDatabase();
             
            //This is the file version for the database after it has been opened
            decimal databaseFileVersion = db.DatabaseFileVersion;
             
            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();  
             
            db.OpenDatabase()
             
            'This is the file version for the database after it has been opened
            Dim databaseFileVersion As Decimal = db.DatabaseFileVersion
             
            db.CloseDatabase()
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

Reference

NinjaDbPro Class
NinjaDbPro Members