Releases the unmanaged resources that are used by the designer and optionally releases the managed resources.
If the associated control that is derived from the System.Web.UI.WebControls.BaseDataList class has a System.ComponentModel.IComponent.Site property that implements the System.ComponentModel.Design.IDesignerHost interface, the BaseDataListDesigner.Dispose(bool) method disconnects the System.ComponentModel.Design.IDesignerHost.LoadComplete event of the System.Web.UI.Design.WebFormsRootDesigner object.
If the System.ComponentModel.IComponent.Site implements the System.ComponentModel.Design.IComponentChangeService method, the BaseDataListDesigner.Dispose(bool) disconnects the System.ComponentModel.Design.IComponentChangeService.ComponentAdded, System.ComponentModel.Design.IComponentChangeService.ComponentRemoving, and System.ComponentModel.Design.IComponentChangeService.ComponentRemoved events. The BaseDataListDesigner.Dispose(bool) also disconnects the System.Web.UI.Design.DataSourceDesigner.DataSourceChanged and System.Web.UI.Design.DataSourceDesigner.SchemaRefreshed events of the System.Web.UI.Design.WebControls.BaseDataListDesigner object. It finally calls the BaseDataListDesigner.Dispose(bool) base method.