Releases the unmanaged resources allocated by the WhoisClient class and optionally releases the managed resources.
A boolean value which should be specified as true to release both managed and unmanaged resources; false to release only unmanaged resources.
The Dispose method terminates any active connection and explicitly releases the resources allocated for this instance of the class. In some cases, better performance can be achieved if the programmer explicitly releases resources when they are no longer being used. The Dispose method provides explicit control over these resources.
Unlike the Uninitialize method, once the Dispose method has been called, that instance of the class cannot be re-initialized and you should not attempt to access class properties or invoke any methods. Note that this method can be called even if other references to the object are active.
You should call Dispose in your derived class when you are finished using the derived class. The Dispose method leaves the derived class in an unusable state. After calling Dispose, you must release all references to the derived class and the WhoisClient class so the memory they were occupying can be reclaimed by garbage collection.