Export (0) Print
Expand All

HwndHost.Dispose Method (Boolean)

Immediately frees any system resources that the object might hold.

Namespace: System.Windows.Interop
Assembly: PresentationFramework (in presentationframework.dll)

protected:
virtual void Dispose (
	bool disposing
)
protected void Dispose (
	boolean disposing
)
protected function Dispose (
	disposing : boolean
)
You cannot use methods in XAML.

Parameters

disposing

Set to true if called from an explicit disposer and false otherwise.

Security noteSecurity Note:

This type or member is not available in the Internet security zone.

Derived classes can override this method if they need to do additional cleanup. However, they should also call the base implementation to ensure that all resources are freed. The base implementation does fairly substantial work to free resources that are known to the base class.

If a window is being hosted, it will be destroyed.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft