Assembly: PresentationCore (in PresentationCore.dll)
Dispose initiates related cleanup work for the HWND. If Dispose is called through a thread that is different from the main UI thread, the cleanup work may be deferred until it can be posted to the main UI thread. The Disposed event is raised and the value of becomes false as soon as Dispose is called. During this time, if you call Dispose again, Dispose raises an exception.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2