Releases the unmanaged resources that are used by the System.Web.UI.Design.WebControls.XmlDesigner control and optionally releases the managed resources.
Call XmlDesigner.Dispose(bool) when you are finished using the System.Web.UI.Design.WebControls.XmlDesigner class. The XmlDesigner.Dispose(bool) method leaves the System.Web.UI.Design.WebControls.XmlDesigner in an unusable state. After calling XmlDesigner.Dispose(bool), you must release all references to the System.Web.UI.Design.WebControls.XmlDesigner so the garbage collector can reclaim the memory that the System.Web.UI.Design.WebControls.XmlDesigner was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
Always call XmlDesigner.Dispose(bool) before you release your last reference to the System.Web.UI.Design.WebControls.XmlDesigner. Otherwise, the resources it is using will not be freed until the garbage collector calls the System.Web.UI.Design.WebControls.XmlDesigner object's Finalize method.
The XmlDesigner.Dispose(bool) method is called by the public Dispose() method and the object.Finalize method. The Dispose() invokes the protected Dispose(Boolean) method with disposing set to true. The object.Finalize invokes Dispose with disposing set to false.
When disposing is true, the XmlDesigner.Dispose(bool) method releases all resources that are held by any managed objects that this System.Web.UI.Design.WebControls.XmlDesigner references. The XmlDesigner.Dispose(bool) method invokes the Dispose() method of each referenced object.