System.Net.Sockets.SocketException public class SocketException : Win32Exception Documentation public SocketError SocketErrorCode { get; } public SocketException() public SocketException(int errorCode) protected SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext)