Database Property

Microsoft Deployment Tools

Deployment Tools Foundation Database Property
Gets the Database for the install session.
Declaration Syntax
C# Visual Basic Visual C++
public Database Database { get; }
Public ReadOnly Property Database As Database
public:
property Database^ Database {
	Database^ get ();
}
Remarks

Normally there is no need to close this Database object. The same object can be used throughout the lifetime of the Session, and it will be closed when the Session is closed.

Win32 MSI API: MsiGetActiveDatabase

Exceptions
Exception Condition
InvalidHandleException the Session handle is invalid
InstallerException the Database cannot be accessed

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)