WindowsFormsHost.Dispose Method (Boolean)

 

Releases the unmanaged resources used by the WindowsFormsHost, and optionally releases the managed resources.

Namespace:   System.Windows.Forms.Integration
Assembly:  WindowsFormsIntegration (in WindowsFormsIntegration.dll)

protected override void Dispose(
	bool disposing
)

Parameters

disposing
Type: System.Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Calling the Dispose method disposes the base HwndHost and the Child control.

.NET Framework
Available since 3.0
Return to top
Show: