System.ComponentModel.Design.Serialization.BasicDesignerLoader.Dispose Method

Releases the resources used by the System.ComponentModel.Design.Serialization.BasicDesignerLoader.

Syntax

public override void Dispose ()

Remarks

Calling the BasicDesignerLoader.Dispose method does not flush changes to the designer loader. If you want changes to be saved, call BasicDesignerLoader.Flush before calling BasicDesignerLoader.Dispose.

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

Note:

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

Requirements

Namespace: System.ComponentModel.Design.Serialization
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0