HwndSource.Disposed Event

Occurs when the Dispose method is called on this object.

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

member Disposed : IEvent<EventHandler,
    EventArgs>

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft