NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComponentDesigner.Dispose

Disposes of the resources (other than memory) used by the ComponentDesigner.

[Visual Basic]
Overridable Public Sub Dispose()
[C#]
public virtual void Dispose();
[C++]
public: virtual void Dispose();
[JScript]
public function Dispose();

Remarks

Call Dispose when you are finished using the ComponentDesigner. The Dispose method leaves the ComponentDesigner in an unusuable state. After calling Dispose, you must release all references to the ComponentDesigner so the memory it was occupying can be reclaimed by garbage collection.

Note   Always call Dispose before you release your last reference to the ComponentDesigner. Otherwise, the resources the ComponentDesigner is using will not be freed until garbage collection calls the ComponentDesigner object's destructor.

See Also

ComponentDesigner Class | ComponentDesigner Members | System.ComponentModel.Design Namespace | IDesigner