HwndSource.Dispose 메서드
.NET Framework 3.0
Releases all managed resources used by the HwndSource, and raises the Disposed event.
네임스페이스: System.Windows.Interop
어셈블리: PresentationCore(presentationcore.dll)
어셈블리: PresentationCore(presentationcore.dll)
보안 참고: |
|---|
| This method is not available in the Internet security zone. |
Dispose initiates related cleanup work for the HWND. If Dispose is called through a different thread than the main UI thread, that work may be deferred until it can be posted to the main UI thread.
Calling Dispose explicitly from the interoperating code might be necessary for certain interoperation scenarios, because an HwndSource in some interoperation scenarios can generate a number of references to it across the interoperation boundaries that might prevent timely garbage collection.
보안 참고: