HtmlHistory.Dispose Method ()


Releases all resources used by the HtmlHistory.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void Dispose()

Call the Dispose method when you are finished using the HtmlHistory object. Dispose leaves the HtmlHistory object in an unusable state. After calling Dispose, you must release all references to HtmlHistory so the garbage collector can reclaim the memory that HtmlHistory was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.


Always call Dispose before you release your last reference to HtmlHistory. Otherwise, the resources HtmlHistory is using will not be freed until the garbage collector calls the object's Finalize method.

.NET Framework
Available since 2.0
Return to top