Disposes of the resources (other than memory) used by this service.
[Visual Basic] Public Sub Dispose() [C#] public void Dispose(); [C++] public: void Dispose(); [JScript] public function Dispose();
Call Dispose when you are finished using the ValueProviderService. The Dispose method leaves the ValueProviderService in an unusuable state. After calling Dispose, you must release all references to the ValueProviderService so the memory it was occupying can be reclaimed by garbage collection.
Note Always call Dispose before you release your last reference to the ValueProviderService. Otherwise, the resources the ValueProviderService is using will not be freed until garbage collection calls the ValueProviderService object's destructor.
ValueProviderService Class | ValueProviderService Members | System.ComponentModel.Design Namespace