Database :: lastVersion - Last owner scope version
The last scope version is maintained for synchronized and database (which is synchronized by default) versioning modes. For versioning modes, which do not support the synchronized feature, the function returns 0. For synchronized and managed versioning modes the function returns the version number consisting of major (managed) and minor version (0xMMMMSSSS - M: major, S: minor). For versioning modes not supporting the managed feature, the function returns the last version number created.
When the database handle is not valid, the function throws an exception..
Return value: Instance version number ( uint32 )
Instance version numbers are assigned version numbers to individual instances.