This documentation is archived and is not being maintained.

HwndHost.Dispose Method

Immediately frees any system resources that the object might hold.

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

'Declaration
Public Sub Dispose
'Usage
Dim instance As HwndHost

instance.Dispose()
You cannot use methods in XAML.

Implements

IDisposable.Dispose

Security noteSecurity Note:

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

This method can be overridden, but not by this signature. See Dispose(Boolean) for the overridable signature. This parameterless signature is the one required by the interface contract, and it effectively calls the active Dispose(Boolean) implementation with disposing true.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: