System.Windows.Forms.HtmlHistory.Dispose Method

Releases all resources used by the System.Windows.Forms.HtmlHistory.

Syntax

public void Dispose ()

Remarks

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

Note:

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

Requirements

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