Releases all resources used by DnsClient.
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.
DnsClient Class | SocketTools Namespace | DnsClient.Dispose Overload List