Assembly: PresentationCore (in PresentationCore.dll)
This method is not available in the Internet security zone.
initiates related cleanup work for the HWND. If 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.
Calling explicitly from the interoperating code might be necessary for certain interoperation scenarios, because an HwndSource in some interoperation scenarios can generate several references to it across the interoperation boundaries that might prevent timely garbage collection.