Deployment Tools Foundation
QDatabase Constructor (handle, ownsHandle, filePath, openMode)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Linq ► QDatabase ► QDatabase(IntPtr, Boolean, String, DatabaseOpenMode)
Creates a new database from an MSI handle.
Declaration Syntax
C# | Visual Basic | Visual C++ |
protected QDatabase( IntPtr handle, bool ownsHandle, string filePath, DatabaseOpenMode openMode )
Protected Sub New ( _ handle As IntPtr, _ ownsHandle As Boolean, _ filePath As String, _ openMode As DatabaseOpenMode _ )
protected: QDatabase( IntPtr handle, bool ownsHandle, String^ filePath, DatabaseOpenMode openMode )
Parameters
- handle (IntPtr)
- Native MSI database handle.
- ownsHandle (Boolean)
- True if the handle should be closed when the database object is disposed
- filePath (String)
- Path of the database file, if known
- openMode (DatabaseOpenMode)
- Mode the handle was originally opened in