See Also: SocketException Members
A System.Net.Sockets.SocketException is thrown by the System.Net.Sockets.Socket and System.Net.Dns classes when an error occurs with the network.
The default constructor for the SocketException.#ctor class sets the SocketException.ErrorCode property to the last operating system socket error that occurred. For more information about socket error codes, see the Windows Sockets version 2 API error code documentation on MSDN.