Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail.Dispose C# (CSharp) Method

Dispose() public method

Release the native objects.
public Dispose ( ) : void
return void
        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

Same methods

TabbedThumbnail::Dispose ( bool disposing ) : void

Usage Example

        public void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Dispose managed resources
                if (tabbedThumbnailPreview != null)
                {
                    tabbedThumbnailPreview.Dispose();
                }
                tabbedThumbnailPreview = null;

                if (ThumbnailToolbarProxyWindow != null)
                {
                    ThumbnailToolbarProxyWindow.Dispose();
                }
                ThumbnailToolbarProxyWindow = null;

                if (TabbedThumbnailProxyWindow != null)
                {
                    TabbedThumbnailProxyWindow.Dispose();
                }
                TabbedThumbnailProxyWindow = null;

                // Don't dispose the thumbnail buttons
                // as they might be used in another window.
                // Setting them to null will indicate we don't need use anymore.
                thumbnailButtons = null;
            }
        }
All Usage Examples Of Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnail::Dispose