SocketException Class
The exception that is thrown by Socket and Dns objects when a network error occurs.
Namespace: System.Net.Sockets
Assembly: System (in system.dll)
Syntax
[SerializableAttribute]
public class SocketException : Exception
Remarks
The default constructor for the SocketException class sets the ErrorCode property to the last network error that occurred. For more information about socket error codes, see the Windows® Sockets 2.0 API error code documentation in the MSDN® Library.
Version Information
Available in .NET Micro Framework version 2.0, 2.5