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 Get
public: property Database^ Database { Database^ get (); }
Property Value
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.dll) Version: 3.0.0.0 (3.9.1006.0)