WindowsFormsHost.Dispose Method (Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: