HwndSource::Disposed Event


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

Occurs when the Dispose method is called on this object.

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

event EventHandler^ Disposed {
	void add(EventHandler^ value);
	void remove(EventHandler^ value);

The Disposed event is raised before any resources are released by the HwndSource. The Disposed event indicates that the object that raises the event is about to have all references to it removed.

Use Disposed and the IsDisposed property to avoid calling Dispose twice (which raises an exception).

.NET Framework
Available since 3.0
Return to top