[This is preliminary documentation and subject to change.]
This is the DatabaseState property of the MsiDatabase object. This property returns the persistence state of the database as one of enum idsEnum:
idsRead | = 0 | Database opens read-only; changes are not saved. |
IdsWrite | = 1 | Database is fully operational for read and write. |
object.DatabaseState