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!

ValueProviderCollection.Dispose

Disposes of the resources (other than memory) associated with the ValueProviderCollection.

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

Remarks

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

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

See Also

ValueProviderCollection Class | ValueProviderCollection Members | System.ComponentModel.Design Namespace