July 28, 2014
Closes the Socket connection and releases all associated resources.
Assembly: System.Net (in System.Net.dll)
For connection-oriented protocols, it is recommended that you call Shutdown before calling the Close method. This ensures that all data is sent and received on the connected socket before it is closed.