C# | Visual Basic | Visual C++ |
public void Commit()
Public Sub Commit
public: void Commit()
For a database open in ReadOnly mode, this method has no effect.
For a database open in CreateDirect or Direct mode, it is not necessary to call this method because the database will be automatically committed when it is closed. However this method may be called at any time to persist the current state of tables loaded into memory.
For a database open in Create or Transact mode, no changes will be persisted until this method is called. If the database object is closed without calling this method, the database file remains unmodified.
Win32 MSI API: MsiDatabaseCommit
Exception | Condition |
---|---|
InvalidHandleException | the Database handle is invalid |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)