Database Constructor (handle, ownsHandle, filePath, openMode)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Database Constructor (handle, ownsHandle, filePath, openMode)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerDatabaseDatabase(IntPtr, Boolean, String, DatabaseOpenMode)
Creates a new database from an MSI handle.
Declaration Syntax
C# Visual Basic Visual C++ F#
protected Database(
	IntPtr handle,
	bool ownsHandle,
	string filePath,
	DatabaseOpenMode openMode
)
Protected Sub New ( 
	handle As IntPtr,
	ownsHandle As Boolean,
	filePath As String,
	openMode As DatabaseOpenMode
)
protected:
Database(
	IntPtr handle, 
	bool ownsHandle, 
	String^ filePath, 
	DatabaseOpenMode openMode
)
new : 
        handle : IntPtr * 
        ownsHandle : bool * 
        filePath : string * 
        openMode : DatabaseOpenMode -> Database
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

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)