FromHandle Method (handle, ownsHandle)

Microsoft Deployment Tools

Deployment Tools Foundation FromHandle Method (handle, ownsHandle)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerDatabaseFromHandle(IntPtr, Boolean)
Creates a new Database object from an integer database handle.
Declaration Syntax
C# Visual Basic Visual C++
public static Database FromHandle(
	IntPtr handle,
	bool ownsHandle
)
Public Shared Function FromHandle ( _
	handle As IntPtr, _
	ownsHandle As Boolean _
) As Database
public:
static Database^ FromHandle(
	IntPtr handle, 
	bool ownsHandle
)
Parameters
handle (IntPtr)
Integer database handle
ownsHandle (Boolean)
true to close the handle when this object is disposed
Remarks

This method is only provided for interop purposes. A Database object should normally be obtained from Database or a public Database constructor.

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